Don't colorize a line if we have no color filter.

There's no guarantee that there's a color filter that matches, so the
color filter pointer might be null.

Change-Id: Ia11845824a4ca9c0cc153a89aa2fba876084a796
Reviewed-on: https://code.wireshark.org/review/22079
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2017-06-11 12:03:59 -07:00
parent e0a9603b24
commit 9f4671f674
1 changed files with 1 additions and 1 deletions

View File

@ -3840,7 +3840,7 @@ print_columns(capture_file *cf, const epan_dissect_t *edt)
}
}
if (dissect_color)
if (dissect_color && color_filter != NULL)
return print_line_color(print_stream, 0, line_bufp, &color_filter->fg_color, &color_filter->bg_color);
else
return print_line(print_stream, 0, line_bufp);