From acdf91e263a438e5914da24bce4d57f2f67f2a9a Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Mon, 9 Feb 2009 07:10:46 +0000 Subject: 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 --- epan/column.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'epan/column.c') 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]) -- cgit v1.2.3