From 29cf77977ef52eec708982b19bf9d2ec17443337 Mon Sep 17 00:00:00 2001 From: Lukas Lansky Date: Wed, 29 Sep 2021 19:06:06 +0200 Subject: Missing "va_end" call. This was found by running the cppcheck static analysis where it shows as error. --- src/locfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locfile.c b/src/locfile.c index 90772a3f..7415ab76 100644 --- a/src/locfile.c +++ b/src/locfile.c @@ -72,6 +72,7 @@ void locfile_locate(struct locfile* l, location loc, const char* fmt, ...) { } jv m1 = jv_string_vfmt(fmt, fmtargs); + va_end(fmtargs); if (!jv_is_valid(m1)) { jq_report_error(l->jq, m1); return; -- cgit v1.2.3