diff options
-rw-r--r-- | wiretap/erf.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/wiretap/erf.c b/wiretap/erf.c index 34c0f34b47..a05a6c533c 100644 --- a/wiretap/erf.c +++ b/wiretap/erf.c @@ -1051,13 +1051,10 @@ static void erf_write_wtap_option_to_host_tag(wtap_block_t block _U_, break; default: erf_meta_tag_free(tag_ptr); - tag_ptr = NULL; return; } - if (tag_ptr) - g_ptr_array_add(section_ptr->tags, tag_ptr); - + g_ptr_array_add(section_ptr->tags, tag_ptr); } static void erf_write_wtap_option_to_interface_tag(wtap_block_t block _U_, |