aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtp.c
diff options
context:
space:
mode:
authorpascal <pascal@localhost>2012-04-30 09:00:05 +0000
committerpascal <pascal@localhost>2012-04-30 09:00:05 +0000
commit4f415d93c53efb93dcb475cc00132a4d67676e71 (patch)
tree523874d68012d7492ce5d0a7d58bfc220b97bc4d /epan/dissectors/packet-gtp.c
parent5df9055044073513e824ccdc54357dc6cffb5415 (diff)
Fix some clang warnings (dead assignment/increment, assigned value is garbage or undefined)
svn path=/trunk/; revision=42344
Diffstat (limited to 'epan/dissectors/packet-gtp.c')
-rw-r--r--epan/dissectors/packet-gtp.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/epan/dissectors/packet-gtp.c b/epan/dissectors/packet-gtp.c
index 57cf944a30..21f9072a0e 100644
--- a/epan/dissectors/packet-gtp.c
+++ b/epan/dissectors/packet-gtp.c
@@ -3011,7 +3011,10 @@ gtp_match_response(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, gint
gcr.req_frame=0;
gcr.rep_frame=pinfo->fd->num;
break;
- default:;
+ default:
+ gcr.is_request=FALSE;
+ gcr.req_frame=0;
+ gcr.rep_frame=0;
break;
}
@@ -3064,8 +3067,8 @@ gtp_match_response(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, gint
}
}
break;
- default:;
- break;
+ default:
+ break;
}
}
@@ -7945,7 +7948,7 @@ dissect_gtp_common(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
col_prepend_fstr(pinfo->cinfo, COL_PROTOCOL, "GTP <");
col_append_str(pinfo->cinfo, COL_PROTOCOL, ">");
- } else {
+ } /*else {
if (gtp_prime)
offset = 6;
else if (gtp_version == 1) {
@@ -7957,7 +7960,7 @@ dissect_gtp_common(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
offset = 8;
} else
offset = 20;
- }
+ }*/
pinfo->private_data = pd_save;
}