From 66c4c14ceb5d3881b211d3c7557ba755bc385dbe Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Sat, 4 Apr 2015 13:34:11 +0200 Subject: [PATCH] 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 --- epan/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/print.c b/epan/print.c index 5dd4800980..8e3794c5cd 100644 --- a/epan/print.c +++ b/epan/print.c @@ -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) {