forked from osmocom/wireshark
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:
parent
08f82c7441
commit
898800fb37
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue