diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-10-05 16:52:59 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-10-05 16:52:59 +0000 |
commit | 2315117682f4f31a25e2ceff6b1bd46a662ff440 (patch) | |
tree | fa1a8e1031a6801e2905a93f6590c7ab44623fae /epan | |
parent | 4593ce5ce8c43007e62b8df907f1104001069da3 (diff) |
Initialize ip_addr to avoid an uninitialized warning.
svn path=/trunk/; revision=30335
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-lldp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c index bcc1c9d152..ea7d0828df 100644 --- a/epan/dissectors/packet-lldp.c +++ b/epan/dissectors/packet-lldp.c @@ -544,7 +544,7 @@ dissect_lldp_chassis_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gui guint8 incorrectLen = 0; /* incorrect length if 1 */ const guint8 *mac_addr = NULL; - guint32 ip_addr; + guint32 ip_addr = 0; struct e_in6_addr ip6_addr; guint8 addr_family = 0; @@ -748,7 +748,7 @@ dissect_lldp_port_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint3 guint32 tempLen = 0; const char *strPtr; const guint8 *mac_addr = NULL; - guint32 ip_addr; + guint32 ip_addr = 0; struct e_in6_addr ip6_addr; guint8 addr_family = 0; |