diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-08 04:45:44 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-08 04:45:44 +0000 |
commit | c5071051a324685cec9a25074d560d3c7d1f6f85 (patch) | |
tree | 3004860585a6d471acf8ffabae63dd15075d303c /lib/libc/tests/stdio/printfloat_test.c | |
parent | 18386bfabb62cd9ad1c727b1d460bc9e84db6aea (diff) | |
download | FreeBSD-src-c5071051a324685cec9a25074d560d3c7d1f6f85.zip FreeBSD-src-c5071051a324685cec9a25074d560d3c7d1f6f85.tar.gz |
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
Diffstat (limited to 'lib/libc/tests/stdio/printfloat_test.c')
-rw-r--r-- | lib/libc/tests/stdio/printfloat_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/tests/stdio/printfloat_test.c b/lib/libc/tests/stdio/printfloat_test.c index 6b4e455..2319747 100644 --- a/lib/libc/tests/stdio/printfloat_test.c +++ b/lib/libc/tests/stdio/printfloat_test.c @@ -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); |