mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add missing va_ends for corresponding va_starts to clean up variable arguments
initialized in _test_fmt(..) MFC after: 3 days Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
23e491222f
commit
3e22799178
2 changed files with 4 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ _testfmt(const char *result, const char *argstr, const char *fmt,...)
|
|||
"wprintf(\"%ls\", %s) ==> [%ls], expected [%ls]\n",
|
||||
wfmt, argstr, ws, wresult);
|
||||
}
|
||||
va_end(ap);
|
||||
va_end(ap2);
|
||||
}
|
||||
|
||||
ATF_TC_WITHOUT_HEAD(int_within_limits);
|
||||
|
|
|
|||
|
|
@ -86,6 +86,8 @@ _testfmt(const char *result, const char *argstr, const char *fmt,...)
|
|||
"wprintf(\"%ls\", %s) ==> [%ls], expected [%ls]\n",
|
||||
wfmt, argstr, ws, wresult);
|
||||
}
|
||||
va_end(ap);
|
||||
va_end(ap2);
|
||||
}
|
||||
|
||||
ATF_TC_WITHOUT_HEAD(float_within_limits);
|
||||
|
|
|
|||
Loading…
Reference in a new issue