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 <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-04-11 19:27:57 -07:00
parent 81f184bc00
commit 148f39d900
1 changed files with 3 additions and 3 deletions

View File

@ -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);