2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

[master] fix uninitialized memory in mem_test.c

This commit is contained in:
Evan Hunt
2017-08-30 19:02:52 -07:00
parent 45afdb2672
commit 5c8de9e2ae

View File

@@ -220,6 +220,7 @@ ATF_TC_BODY(isc_mem_recordflag, tc) {
isc_mem_destroy(&mctx2);
isc_stdio_close(f);
memset(buf, 0, sizeof(buf));
result = isc_stdio_open("mem.output", "r", &f);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
result = isc_stdio_read(buf, sizeof(buf), 1, f, &size);