diff options
author | Pavel TvrdĂk <pawel.tvrdik@gmail.com> | 2016-03-29 10:37:31 +0200 |
---|---|---|
committer | Pavel Tvrdik <pawel.tvrdik@gmail.com> | 2016-06-27 15:07:50 +0200 |
commit | 8f01879c5629bd714dfeec968337cfcd4dbe6a87 (patch) | |
tree | 0317788989a79a120abbae2443ffd7e2dab68454 /sysdep | |
parent | 122deb6d5b14f46f3cfb25bf3f5726005d6a3b3e (diff) |
cppcheck: fix va_end() functions
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/log.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index 6665d035..631bd691 100644 --- a/sysdep/unix/log.c +++ b/sysdep/unix/log.c @@ -209,6 +209,7 @@ bug(const char *msg, ...) va_start(args, msg); vlog(L_BUG[0], msg, args); + va_end(args); abort(); } @@ -226,6 +227,7 @@ die(const char *msg, ...) va_start(args, msg); vlog(L_FATAL[0], msg, args); + va_end(args); exit(1); } |