From 148f39d900b516cac575d7de689a44545a663c70 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 11 Apr 2018 19:27:57 -0700 Subject: Need to flag a variable as volatile, due to the use of exceptions. The exception mechanism is setjmp/longjmp-based, so we need to mark offset as volatile, otherwise the longjmp might not restore its value. Change-Id: Ib63070bbbbe1f16a93cb58aa7ee5ef2a5488df8a Reviewed-on: https://code.wireshark.org/review/26901 Reviewed-by: Guy Harris --- epan/dissectors/packet-mp2t.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan') diff --git a/epan/dissectors/packet-mp2t.c b/epan/dissectors/packet-mp2t.c index a4cbdc5565..413cda347d 100644 --- a/epan/dissectors/packet-mp2t.c +++ b/epan/dissectors/packet-mp2t.c @@ -1195,9 +1195,9 @@ dissect_tsp(tvbuff_t *tvb, gint offset, packet_info *pinfo, static int dissect_mp2t( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ ) { - guint offset = 0; - conversation_t *conv; - const char *saved_proto; + volatile guint offset = 0; + conversation_t *conv; + const char *saved_proto; conv = find_or_create_conversation(pinfo); -- cgit v1.2.3