]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove non null check
authorMark Andrews <marka@isc.org>
Tue, 9 Dec 2014 08:51:32 +0000 (19:51 +1100)
committerMark Andrews <marka@isc.org>
Tue, 9 Dec 2014 08:51:56 +0000 (19:51 +1100)
(cherry picked from commit 2e98ab2c9db1e5315cd605332dc42b7edbabe99f)

lib/dns/master.c

index 999a2f0c60a83cca51a848d6614e16517d7cb4ef..fd69595a966b3f3490ab726061705c72518fd358 100644 (file)
@@ -2109,8 +2109,7 @@ pushfile(const char *master_file, dns_name_t *origin, dns_loadctx_t *lctx) {
        return (ISC_R_SUCCESS);
 
  cleanup:
-       if (new != NULL)
-               incctx_destroy(lctx->mctx, new);
+       incctx_destroy(lctx->mctx, new);
        return (result);
 }