Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/log.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-16 21:02:39 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-16 21:02:39 +0000
commit58a7e85534f260a49a324dd5b3f408ce1e21cd18 (patch)
treef0b60c1c8a26a58400522ceee54fb908866a64a0 /lib/libalpm/log.c
parentdc0bacf18cfe2481516778905051879bd008f517 (diff)
- db_write: add support to write both local and sync entries
- code cleanup
Diffstat (limited to 'lib/libalpm/log.c')
-rw-r--r--lib/libalpm/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/log.c b/lib/libalpm/log.c
index 8e24c495..f0dd2b18 100644
--- a/lib/libalpm/log.c
+++ b/lib/libalpm/log.c
@@ -33,14 +33,14 @@ unsigned char pm_logmask = 0;
void _alpm_log(unsigned char flag, char *fmt, ...)
{
- char str[LOG_STR_LEN];
- va_list args;
-
if(pm_logcb == NULL) {
return;
}
if(flag & pm_logmask) {
+ char str[LOG_STR_LEN];
+ va_list args;
+
va_start(args, fmt);
vsnprintf(str, LOG_STR_LEN, fmt, args);
va_end(args);