remove INSIST and unconditionally call isc_stdio_close

This commit is contained in:
Mark Andrews
2015-10-16 17:23:35 +11:00
parent 43cc3edce9
commit 20ac20d6e8

View File

@@ -374,8 +374,6 @@ dns_test_getdata(const char *file, unsigned char *buf,
if (result != ISC_R_SUCCESS)
return (result);
INSIST(f != NULL);
bp = buf;
while (fgets(s, sizeof(s), f) != NULL) {
rp = s;
@@ -412,8 +410,7 @@ dns_test_getdata(const char *file, unsigned char *buf,
result = ISC_R_SUCCESS;
cleanup:
if (f != NULL)
isc_stdio_close(f);
isc_stdio_close(f);
return (result);
}