summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorPavel TvrdĂ­k <pawel.tvrdik@gmail.com>2016-03-29 10:37:31 +0200
committerPavel Tvrdik <pawel.tvrdik@gmail.com>2016-06-27 15:07:50 +0200
commit8f01879c5629bd714dfeec968337cfcd4dbe6a87 (patch)
tree0317788989a79a120abbae2443ffd7e2dab68454 /client
parent122deb6d5b14f46f3cfb25bf3f5726005d6a3b3e (diff)
cppcheck: fix va_end() functions
Diffstat (limited to 'client')
-rw-r--r--client/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/util.c b/client/util.c
index c35cf8f4..2d6c074d 100644
--- a/client/util.c
+++ b/client/util.c
@@ -40,6 +40,7 @@ bug(const char *msg, ...)
fputs("Internal error: ", stderr);
vlog(msg, args);
vfprintf(stderr, msg, args);
+ va_end(args);
exit(1);
}
@@ -51,5 +52,6 @@ die(const char *msg, ...)
va_start(args, msg);
cleanup();
vlog(msg, args);
+ va_end(args);
exit(1);
}