]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence coverity warnings
authorMark Andrews <marka@isc.org>
Sat, 11 Jun 2016 14:08:31 +0000 (00:08 +1000)
committerMark Andrews <marka@isc.org>
Sat, 11 Jun 2016 14:08:31 +0000 (00:08 +1000)
bin/named/server.c

index 4744f4b4c2eb507dc7523d7191d785a0ccb38c8b..878ac5ac3bbc3f165aed839f34626e3ba054041f 100644 (file)
@@ -10234,7 +10234,7 @@ static void
 dumpzone(void *arg, const char *buf, int len) {
        FILE *fp = arg;
 
-       isc_stdio_write(buf, len, 1, fp, NULL);
+       (void) isc_stdio_write(buf, len, 1, fp, NULL);
 }
 
 static isc_result_t
@@ -10355,6 +10355,7 @@ nzf_writeconf(const cfg_obj_t *config, dns_view_t *view) {
 
        CHECK(isc_stdio_flush(fp));
        CHECK(isc_stdio_close(fp));
+       fp = NULL;
        CHECK(isc_file_rename(tmp, view->new_zone_file));
        return (result);