]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: cleanup clang uninitialized variable warning
authorLou Berger <lberger@labn.net>
Wed, 20 Apr 2016 12:11:05 +0000 (08:11 -0400)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Sat, 3 Sep 2016 15:05:51 +0000 (11:05 -0400)
bgpd/bgp_attr.c

index dc157ba7d022c6828be41e1da907c7ac74246459..242b28717640f179de3370b035bf4c3a348390f5 100644 (file)
@@ -1947,7 +1947,7 @@ bgp_attr_encap(
   }
 
   while (length >= 4) {
-    uint16_t   subtype;
+    uint16_t   subtype   = 0;
     uint16_t   sublength = 0;
     struct bgp_attr_encap_subtlv *tlv;