Author: ngie
Date: Thu Jul 14 06:10:16 2016
New Revision: 302807
URL: https://svnweb.freebsd.org/changeset/base/302807

Log:
  Initialize first_serial to 0 in dozonetransfer(..) to fix -Wuninitialized
  warning
  
  MFC after: 3 days
  X-MFC with: r302779
  Pointyhat to: des
  PR: 209177
  Reported by: Jenkins (sparc64 job), gcc 4.2.1, gcc 5.3.0
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/contrib/ldns-host/ldns-host.c

Modified: head/contrib/ldns-host/ldns-host.c
==============================================================================
--- head/contrib/ldns-host/ldns-host.c  Thu Jul 14 06:10:00 2016        
(r302806)
+++ head/contrib/ldns-host/ldns-host.c  Thu Jul 14 06:10:16 2016        
(r302807)
@@ -888,7 +888,7 @@ dozonetransfer(ldns_resolver *res, ldns_
     ldns_rr_list *rrl;
     ldns_rr *rr;
     size_t i, nsoa = 0;
-    uint32_t first_serial;
+    uint32_t first_serial = 0;
 
     rrtype = o_rrtype;
     o_rrtype = (o_mode == M_AXFR) ? LDNS_RR_TYPE_AXFR : LDNS_RR_TYPE_IXFR;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to