Squelch compiler warning:

packet-dvbci.c: In function 'dissect_dvbci_lpdu':
packet-dvbci.c:1153: warning: 'hdr_tag' may be used uninitialized in this function
packet-dvbci.c:1153: note: 'hdr_tag' was declared here

By setting hdr_tag = 0, but see question on bug #5654 on whether 0 is a 
good default value or not.


svn path=/trunk/; revision=36157
This commit is contained in:
Stephen Fisher 2011-03-07 17:01:55 +00:00
parent 523d4d1cbe
commit 664916ad64
1 changed files with 1 additions and 1 deletions

View File

@ -1150,7 +1150,7 @@ dissect_dvbci_tpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_item *ti = NULL;
proto_tree *trans_tree = NULL;
gint offset, status_len;
guint8 hdr_tag;
guint8 hdr_tag = 0; /* XXX - is 0 a good default value? */
tvbuff_t *payload_tvb = NULL;
proto_item *pi;