summaryrefslogtreecommitdiff
path: root/conf/conf.c
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 /conf/conf.c
parent122deb6d5b14f46f3cfb25bf3f5726005d6a3b3e (diff)
cppcheck: fix va_end() functions
Diffstat (limited to 'conf/conf.c')
-rw-r--r--conf/conf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/conf.c b/conf/conf.c
index 825a8e9f..efaeedeb 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -512,6 +512,7 @@ cf_error(char *msg, ...)
va_start(args, msg);
if (bvsnprintf(buf, sizeof(buf), msg, args) < 0)
strcpy(buf, "<bug: error message too long>");
+ va_end(args);
new_config->err_msg = cfg_strdup(buf);
new_config->err_lino = ifs->lino;
new_config->err_file_name = ifs->file_name;