we may see an empty option string in output_fields_set_option()
Change-Id: I45a4cbef7cb38a851c207fbe26ff412ffc502240 Reviewed-on: https://code.wireshark.org/review/7903 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
parent
37c41d7927
commit
66c4c14ceb
|
@ -1110,7 +1110,7 @@ gboolean output_fields_set_option(output_fields_t *info, gchar *option)
|
|||
g_assert(option);
|
||||
|
||||
if ('\0' == *option) {
|
||||
return FALSE; /* Is this guarded against by option parsing? */
|
||||
return FALSE; /* this happens if we're called from tshark -E '' */
|
||||
}
|
||||
option_name = strtok(option, "=");
|
||||
if (!option_name) {
|
||||
|
|
Loading…
Reference in New Issue