pcapng: Fix Branch condition evaluate to a garbage value

wblock->internal is not initialized on pcapng_read_custom_block function
pcapng.c:3747:9: warning: Branch condition evaluates to a garbage value [core.uninitialized.Branch]
This commit is contained in:
Alexis La Goutte 2021-09-05 14:06:48 +00:00
parent fece6e0440
commit 5fc6549178
1 changed files with 1 additions and 0 deletions

View File

@ -2787,6 +2787,7 @@ pcapng_read_custom_block(FILE_T fh, pcapng_block_header_t *bh,
wblock->rec->block = wblock->block;
wblock->block = NULL;
wblock->internal = FALSE;
return TRUE;
}