aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sip.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-05-12 02:55:59 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-05-12 02:55:59 +0000
commitbbda9a7669fcc10cbe60d1f8964dbe7df5814ca1 (patch)
tree5963acd32699cf8ac9587bb57fdb93cb3edadc4c /epan/dissectors/packet-sip.c
parentd9769146860572d2460cf3fc709403eca29405ab (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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14355 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-sip.c')
-rw-r--r--epan/dissectors/packet-sip.c4
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
+}