]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add va_end call for va_copy call.
authorBruno Haible <bruno@clisp.org>
Tue, 25 Sep 2007 00:23:03 +0000 (00:23 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:05 +0000 (12:15 +0200)
gnulib-local/ChangeLog
gnulib-local/lib/vasprintf.c

index 1bc49c4b4435d2d4002ceebe9dffebac20bc31c1..ca1969629e78927752c9b0079e6502abc4bfe9c7 100644 (file)
@@ -1,6 +1,6 @@
 2007-09-24  Bruno Haible  <bruno@clisp.org>
 
-       * lib/vasprintf.c (int_vasprintf): Use va_copy.
+       * lib/vasprintf.c (int_vasprintf): Use va_copy and va_end.
        * modules/vasprintf.diff: Add dependency to stdarg.
        Reported by Cristian Baboi <cristi@ot.onrc.ro>.
 
index 0faa9f6a91528e5f708dcab7dbe2a7cc00d5b5cf..df5c3439ac91208b11efebe57ec26ffc4e258719 100644 (file)
@@ -108,6 +108,8 @@ int_vasprintf (char **result, const char *format, va_list *args)
          p++;
        }
     }
+  va_end (ap);
+
 #ifdef TEST
   global_total_width = total_width;
 #endif