aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-10-23 19:44:07 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-10-23 19:44:07 +0000
commitb3256e6d44f71a2ed45e6956f8083c9e71d7260c (patch)
tree1c5e6e1779725ea8b84afb524314d6be3b226738 /epan/dissectors/packet-gtp.c
parent10d2e652289c0179763928dd43998783752e49d3 (diff)
Fix:
cc1: warnings being treated as errors packet-gtp.c: In function ‘decode_qos_umts’: packet-gtp.c:3725: error: ‘guar_dl_ext’ may be used uninitialized in this function packet-gtp.c:3722: error: ‘max_dl_ext’ may be used uninitialized in this function packet-gtp.c:3725: error: ‘guar_ul_ext’ may be used uninitialized in this function packet-gtp.c:3722: error: ‘max_ul_ext’ may be used uninitialized in this function packet-gtp.c:3726: error: ‘sig_ind’ may be used uninitialized in this function packet-gtp.c:3726: error: ‘src_stat_desc’ may be used uninitialized in this function make[4]: *** [libdissectors_la-packet-gtp.lo] Error 1 svn path=/trunk/; revision=26528
Diffstat (limited to 'epan/dissectors/packet-gtp.c')
-rw-r--r--epan/dissectors/packet-gtp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-gtp.c b/epan/dissectors/packet-gtp.c
index 819aa45389..e9029d2f1c 100644
--- a/epan/dissectors/packet-gtp.c
+++ b/epan/dissectors/packet-gtp.c
@@ -3871,6 +3871,14 @@ static int decode_qos_umts(tvbuff_t * tvb, int offset, proto_tree * tree, const
guar_ul = wrapped_tvb_get_guint8(tvb, offset + (10 - 1) * utf8_type + 1, utf8_type);
/* Octet 13 */
guar_dl = wrapped_tvb_get_guint8(tvb, offset + (11 - 1) * utf8_type + 1, utf8_type);
+
+ src_stat_desc = 0;
+ sig_ind = 0;
+ max_dl_ext = 0;
+ guar_dl_ext = 0;
+ max_ul_ext = 0;
+ guar_ul_ext =0;
+
if (length > 13) {
src_stat_desc = wrapped_tvb_get_guint8(tvb, offset + (12 - 1) * utf8_type + 1, utf8_type)& 0xf;
sig_ind = wrapped_tvb_get_guint8(tvb, offset + (12 - 1) * utf8_type + 1, utf8_type)& 0x01;