diff options
Diffstat (limited to 'lib/libalpm/log.c')
-rw-r--r-- | lib/libalpm/log.c | 6 |
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); |