forked from osmocom/wireshark
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:
parent
e0a9603b24
commit
9f4671f674
2
tshark.c
2
tshark.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue