aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Karlsson <oakimk@gmail.com>2023-02-21 13:35:13 +0100
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2023-02-21 15:17:07 +0000
commitddf1d21c6fe96a72f8242f2ab6b7032c31cc9d75 (patch)
tree10bcb158ddc9695d5474775108b5413e5d1e9b86
parent6487885b9300e53d08618c046c452ee73d23832b (diff)
file-pcapng: fix might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
-rw-r--r--epan/dissectors/file-pcapng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/file-pcapng.c b/epan/dissectors/file-pcapng.c
index 423c1cd22b..2c129c9130 100644
--- a/epan/dissectors/file-pcapng.c
+++ b/epan/dissectors/file-pcapng.c
@@ -1767,7 +1767,7 @@ gint dissect_block(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, struct i
length = tvb_get_guint32(tvb, offset + 4, info->encoding);
/* Lookup handlers for known local block type */
- local_block_callback_info_t *p_local_block_callback = NULL;
+ local_block_callback_info_t *volatile p_local_block_callback = NULL;
if (block_type >= 0x80000000) {
p_local_block_callback = (local_block_callback_info_t*)g_hash_table_lookup(s_local_block_callback_table, GUINT_TO_POINTER(block_type));
}