diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2009-02-09 07:10:46 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2009-02-09 07:10:46 +0000 |
commit | acdf91e263a438e5914da24bce4d57f2f67f2a9a (patch) | |
tree | ccd9ee0a3d59ae9e64f5552b607365304675b4b5 /epan/column.c | |
parent | a04a5d70e6fd85ca96567d8de76ba1944534c452 (diff) | |
download | wireshark-acdf91e263a438e5914da24bce4d57f2f67f2a9a.tar.gz wireshark-acdf91e263a438e5914da24bce4d57f2f67f2a9a.tar.bz2 wireshark-acdf91e263a438e5914da24bce4d57f2f67f2a9a.zip |
Make "Copy as Filter" on the packet list actually work.
Up till now every packet in the packet list got a copy of the pointer to the filter expressions for
the last packets' columns. Hence any 'Copy as Filter" on a column got the expression of the last
packet in the packet list. Instead every packet needs to get a pointer to the filter expressions
for its own columns. This requires making a copy of the filter expressions themselves.
Since this is a bug in 1.0 as well the GLIB1 code is provided for backporting, which can later be dropped from the development tree.
svn path=/trunk/; revision=27396
Diffstat (limited to 'epan/column.c')
-rw-r--r-- | epan/column.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/column.c b/epan/column.c index 2f302ff96c..bd9ba1533f 100644 --- a/epan/column.c +++ b/epan/column.c @@ -692,6 +692,9 @@ build_column_format_array(column_info *cinfo, gboolean reset_fences) COL_MAX_LEN); } + cinfo->col_expr.col_expr[i] = NULL; + cinfo->col_expr.col_expr_val[i] = NULL; + for (i = 0; i < cinfo->num_cols; i++) { for (j = 0; j < NUM_COL_FMTS; j++) { if (!cinfo->fmt_matx[i][j]) |