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
@ -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…
x
Reference in New Issue
Block a user