fix error handling in tree parsing for filter
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 8 Feb 2006 16:18:38 +0000 (16:18 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 8 Feb 2006 16:18:38 +0000 (16:18 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1528 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/lttv/filter.c

index dfbcaba8a7bb27b5736b0bce3163736628b07b70..abdeb464bab1bdd18f4010aeafa1e722e3a75d92 100644 (file)
@@ -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");
   }
 
This page took 0.024576 seconds and 4 git commands to generate.