]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix scan-build issue: initialized value never read
authorMatthijs Mekking <matthijs@isc.org>
Mon, 27 Mar 2023 09:54:00 +0000 (11:54 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 29 Mar 2023 15:08:36 +0000 (15:08 +0000)
Value stored to 'source' during its initialization is never read.

(cherry picked from commit 4c33277446704381300920db50a88c56c17e29a9)

lib/dns/master.c

index 36f63052938d533fde2557913847757ee19a9625..fc561076c5b30304108fd21b079b3715a07a18e1 100644 (file)
@@ -1101,7 +1101,7 @@ load_text(dns_loadctx_t *lctx) {
        char *lhs = NULL;
        char *gtype = NULL;
        char *rhs = NULL;
-       const char *source = "";
+       const char *source;
        unsigned long line = 0;
        bool explicit_ttl;
        char classname1[DNS_RDATACLASS_FORMATSIZE];