ldns: Fix -Winit-self.
authorSascha Wildner <saw@online.de>
Tue, 25 Feb 2014 22:42:33 +0000 (23:42 +0100)
committerSascha Wildner <saw@online.de>
Tue, 25 Feb 2014 23:09:07 +0000 (00:09 +0100)
contrib/ldns/README.DRAGONFLY
contrib/ldns/dnssec_verify.c

index 0e387f7..25888d4 100644 (file)
@@ -10,5 +10,7 @@ size = 1109941
 sha1 = 5b4fc6c5c3078cd061905c47178478cb1015c62a
 
 A list of files and directories removed is in README.DELETED
-There are no local modifications.
 
+The following files have been patched:
+
+dnssec_verify.c - to silence -Winit-self and not have to lower WARNS
index d435eed..d8d4664 100644 (file)
@@ -1596,7 +1596,7 @@ ldns_dnssec_verify_denial_nsec3_match( ldns_rr *rr
        ldns_rdf *zone_name;
        ldns_rdf *hashed_name;
        /* self assignment to suppress uninitialized warning */
-       ldns_rdf *next_closer = next_closer;
+       ldns_rdf *next_closer = NULL;
        ldns_rdf *hashed_next_closer;
        size_t i;
        ldns_status result = LDNS_STATUS_DNSSEC_NSEC_RR_NOT_COVERED;