forked from osmocom/wireshark
Color filters: Initialize a variable.
Make sure temp_dfilter is initialized so that we don't end up freeing invalid memory. Change-Id: Id31969573690574846422b67c950188fd6ee4ef3 Reviewed-on: https://code.wireshark.org/review/18066 Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
parent
c8143e2077
commit
6499a02395
|
@ -626,7 +626,7 @@ read_filters_file(const gchar *path, FILE *f, gpointer user_data, color_filter_a
|
|||
|
||||
color_t bg_color, fg_color;
|
||||
color_filter_t *colorf;
|
||||
dfilter_t *temp_dfilter;
|
||||
dfilter_t *temp_dfilter = NULL;
|
||||
gchar *local_err_msg = NULL;
|
||||
|
||||
if (!disabled && !dfilter_compile(filter_exp, &temp_dfilter, &local_err_msg)) {
|
||||
|
|
Loading…
Reference in New Issue