rawshark: fix compile error -Wmaybe-uninitialized

wireshark/rawshark.c:1239:15: warning: ‘fs_ptr’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
         printf(" %d=\"%s\"", cmd_line_index, fs_ptr);
               ^
wireshark/rawshark.c:1120:26:
note: ‘fs_ptr’ was declared here
     char                *fs_ptr;
                          ^
This commit is contained in:
Joakim Karlsson 2021-12-08 15:47:19 +01:00
parent 08f82c7441
commit 898800fb37
1 changed files with 1 additions and 1 deletions

View File

@ -1117,7 +1117,7 @@ static gboolean print_field_value(field_info *finfo, int cmd_line_index)
{
header_field_info *hfinfo;
char *fs_buf;
char *fs_ptr;
char *fs_ptr = NULL;
static GString *label_s = NULL;
size_t fs_len;
guint i;