From fb04197e7f9e751cac124b35461779ff3e39e182 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 8 Feb 2006 16:18:38 +0000 Subject: [PATCH] fix error handling in tree parsing for filter git-svn-id: http://ltt.polymtl.ca/svn@1528 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/filter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index dfbcaba8..abdeb464 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -229,6 +229,9 @@ lttv_simple_expression_assign_field(GPtrArray* fp, LttvSimpleExpression* se) { se->field = LTTV_FILTER_EVENT_FIELD; } } else { + g_string_free(f,TRUE); + f=g_ptr_array_remove_index(fp,0); + g_warning("Unrecognized field in filter string"); } -- 2.34.1