index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/log.c | 6 |
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); |