Browse Source

Resolves: bug 416721
Descriptionn: fedora-ds-base build problem
Fix Description: Correct usage of va_list and vfprintf

Rich Megginson 18 years ago
parent
commit
be7044d640
1 changed files with 3 additions and 1 deletions
  1. 3 1
      ldap/servers/slapd/tools/dbscan.c

+ 3 - 1
ldap/servers/slapd/tools/dbscan.c

@@ -142,6 +142,7 @@ void db_printf(char *fmt, ...)
 
 
     va_start(ap, fmt);
     va_start(ap, fmt);
     vfprintf(stdout, fmt, ap);
     vfprintf(stdout, fmt, ap);
+    va_end(ap);
 }
 }
 
 
 void db_printfln(char *fmt, ...)
 void db_printfln(char *fmt, ...)
@@ -150,7 +151,8 @@ void db_printfln(char *fmt, ...)
 
 
     va_start(ap, fmt);
     va_start(ap, fmt);
     vfprintf(stdout, fmt, ap);
     vfprintf(stdout, fmt, ap);
-    vfprintf(stdout, "\n", NULL);
+    va_end(ap);
+    fprintf(stdout, "\n");
 }
 }
 
 
 int MAX_BUFFER = 4096;
 int MAX_BUFFER = 4096;