diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-06-11 12:03:59 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-06-11 19:04:48 +0000 |
commit | 9f4671f674ca70a3d7d33f22daf0bd88a7e8ff8d (patch) | |
tree | c7630534aea92e05bf477a877d9593c7a1835621 /tshark.c | |
parent | e0a9603b2454ea4f253788bb61fdae8b83627c5b (diff) |
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>
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |