Missing "va_end" call. This was found by running the cppcheck static analysis where it shows as error.
This commit is contained in:
1 parent
55e6e2c218
commit
29cf77977e
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user