diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-05-12 02:55:59 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-05-12 02:55:59 +0000 |
commit | 38c139dce3316f9b4f155a4c7bd2195217e27746 (patch) | |
tree | 5963acd32699cf8ac9587bb57fdb93cb3edadc4c /epan | |
parent | bd29cb1267020e7f1eb99dec9fdf5c3cd818984c (diff) |
Squelch a compiler warning (GCC 4.0's data flow analysis is
interprocedural, so it knows "sip_parse_line()" doesn't always set
"*token_1_len", but it doesn't know that if it doesn't return OTHER_LINE
it *does* always set it, so it's safe not to set it as long as it's
never used if the return value is OTHER_LINE).
svn path=/trunk/; revision=14355
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c index e82026114c..68cf7bc5b5 100644 --- a/epan/dissectors/packet-sip.c +++ b/epan/dissectors/packet-sip.c @@ -992,7 +992,7 @@ dissect_sip_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_known_request; gboolean found_match = FALSE; char *descr; - guint token_1_len; + guint token_1_len = 0; guint current_method_idx = 0; proto_item *ts = NULL, *ti = NULL, *th = NULL, *sip_element_item = NULL; proto_tree *sip_tree = NULL, *reqresp_tree = NULL , *hdr_tree = NULL, *sip_element_tree = NULL, *message_body_tree = NULL; @@ -2673,4 +2673,4 @@ proto_reg_handoff_sip(void) heur_dissector_add("udp", dissect_sip_heur, proto_sip); heur_dissector_add("tcp", dissect_sip_heur, proto_sip); heur_dissector_add("sctp", dissect_sip_heur, proto_sip); -}
\ No newline at end of file +} |