Missing "va_end" call. This was found by running the cppcheck static analysis where it shows as error.

This commit is contained in:
Lukas Lansky authored and Nico Williams committed 2022-05-26 15:53:59 -05:00
1 parent 55e6e2c218
commit 29cf77977e
1 file changed
+1
+1
View File
@@ -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;