diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-08-13 14:28:07 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-08-13 14:28:07 +0200 |
commit | b7b52b9dec337a08a89bc67638773be652eba332 (patch) | |
tree | 8a4d80e8bfdf464f3288e0012eb7f1bd9ebc184b | |
parent | 017801880bc6b731263239da46b4fd3259cc4ff7 (diff) | |
download | glibc-b7b52b9dec337a08a89bc67638773be652eba332.zip glibc-b7b52b9dec337a08a89bc67638773be652eba332.tar.gz glibc-b7b52b9dec337a08a89bc67638773be652eba332.tar.bz2 |
error, error_at_line: Add missing va_end calls
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | misc/error.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2018-08-13 Florian Weimer <fweimer@redhat.com> + * misc/error.c (error): Add missing va_end call. + (error_at_line): Likewise. + +2018-08-13 Florian Weimer <fweimer@redhat.com> + * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment. 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org> diff --git a/misc/error.c b/misc/error.c index b4e8b6c..03378e2 100644 --- a/misc/error.c +++ b/misc/error.c @@ -319,6 +319,7 @@ error (int status, int errnum, const char *message, ...) va_start (args, message); error_tail (status, errnum, message, args); + va_end (args); #ifdef _LIBC _IO_funlockfile (stderr); @@ -390,6 +391,7 @@ error_at_line (int status, int errnum, const char *file_name, va_start (args, message); error_tail (status, errnum, message, args); + va_end (args); #ifdef _LIBC _IO_funlockfile (stderr); |