aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-11-26 03:45:55 +0000
committerGuy Harris <guy@alum.mit.edu>2012-11-26 03:45:55 +0000
commit8b3de820ee02d1acde677c86cc32881e3f7bb3db (patch)
treec0033450699ea95f60c51d4768b667abf3b5f07e /epan/dissectors/packet-ip.c
parent83da3483cd7a6e08c8819a5237e02933bab9a8ab (diff)
Fix uninitialized-variable bug.
svn path=/trunk/; revision=46199
Diffstat (limited to 'epan/dissectors/packet-ip.c')
-rw-r--r--epan/dissectors/packet-ip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c
index 2bec7b5309..667bb88cfe 100644
--- a/epan/dissectors/packet-ip.c
+++ b/epan/dissectors/packet-ip.c
@@ -2058,6 +2058,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
col_add_fstr(pinfo->cinfo, COL_INFO,
"Bogus IP length (%u, less than header length %u)",
iph->ip_len, hlen);
+ tf = NULL;
if (tree) {
tf = proto_tree_add_uint_format(ip_tree, hf_ip_len, tvb, offset + 2, 2,
iph->ip_len,