Commit bfef17be authored by Daniel Black's avatar Daniel Black Committed by Vicențiu Ciorbaru

MDEV-9433: [PATCH} cppcheck reported a number of minor coding errors

Fix cppwarning of va_args being opened but not closed.
Signed-off-by: default avatarVicențiu Ciorbaru <vicentiu@mariadb.org>
parent 0089af8e
...@@ -1874,6 +1874,7 @@ void die(const char* fmt, ...) ...@@ -1874,6 +1874,7 @@ void die(const char* fmt, ...)
fprintf(stderr,"Error:"); fprintf(stderr,"Error:");
vfprintf(stderr, fmt,va_args); vfprintf(stderr, fmt,va_args);
fprintf(stderr,", errno=%d\n", errno); fprintf(stderr,", errno=%d\n", errno);
va_end(va_args);
exit(1); exit(1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment