Blame SOURCES/authd-1.4.3-valist.patch

f5a0df
diff -up authd-1.4.3/authd.c.valist authd-1.4.3/authd.c
f5a0df
--- authd-1.4.3/authd.c.valist	2008-05-21 14:55:30.000000000 +0200
f5a0df
+++ authd-1.4.3/authd.c	2008-05-21 14:56:34.000000000 +0200
f5a0df
@@ -80,13 +80,16 @@ static void log_printf(int level, const 
f5a0df
     if (opt.debug || level != LOG_DEBUG) {
f5a0df
         va_list ap;
f5a0df
 
f5a0df
-        va_start(ap, s);
f5a0df
         if (s == NULL || *s == '\0') {
f5a0df
             s = strerror(errno);
f5a0df
             assert(strchr(s, '%') == NULL);
f5a0df
         }
f5a0df
-        if (opt.log)
f5a0df
+        if (opt.log) {
f5a0df
+            va_start(ap, s);
f5a0df
             vsyslog(level, s, ap);
f5a0df
+            va_end(ap);
f5a0df
+        }
f5a0df
+        va_start(ap, s);
f5a0df
         if (vfprintf(level == LOG_INFO ? stdout : stderr, s, ap) < 0) {
f5a0df
             perror(program_invocation_name);
f5a0df
             level = INT_MIN;