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:
Enji Cooper 2015-12-08 04:45:44 +00:00
parent 23e491222f
commit 3e22799178
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);