summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests/stdio/getdelim_test.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-13 04:29:09 +0000
committerngie <ngie@FreeBSD.org>2015-12-13 04:29:09 +0000
commit8dd9ca5e2a1e7d0875e2dcdf0aaf18b9ca9016dc (patch)
tree2da61b4f97ccfbf272320c5f6462a1026d45a269 /lib/libc/tests/stdio/getdelim_test.c
parent2b74a3bca078e378222bc5b0505d6dcb9f55b559 (diff)
downloadFreeBSD-src-8dd9ca5e2a1e7d0875e2dcdf0aaf18b9ca9016dc.zip
FreeBSD-src-8dd9ca5e2a1e7d0875e2dcdf0aaf18b9ca9016dc.tar.gz
MFC r291980,r291981:
r291980: Add missing va_ends for corresponding va_starts to clean up variable arguments initialized in _test_fmt(..) Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division r291981: Delete bogus freeing of uninitialized data Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/libc/tests/stdio/getdelim_test.c')
-rw-r--r--lib/libc/tests/stdio/getdelim_test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/tests/stdio/getdelim_test.c b/lib/libc/tests/stdio/getdelim_test.c
index 5ef589a..1d24f5c 100644
--- a/lib/libc/tests/stdio/getdelim_test.c
+++ b/lib/libc/tests/stdio/getdelim_test.c
@@ -208,7 +208,6 @@ ATF_TC_BODY(empty_NULL_buffer, tc)
/* Make sure NULL *linep and zero *linecapp are handled. */
fp = mkfilebuf();
- free(line);
line = NULL;
linecap = 42;
ATF_REQUIRE(getline(&line, &linecap, fp) == sizeof(apothegm) - 1);
OpenPOWER on IntegriCloud