aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trace-view.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/trace-view.c b/trace-view.c
index 13fdb7e..052160f 100644
--- a/trace-view.c
+++ b/trace-view.c
@@ -444,6 +444,7 @@ void trace_view_adv_filter_callback(gboolean accept,
444 char *error_str; 444 char *error_str;
445 guint64 time; 445 guint64 time;
446 gint row; 446 gint row;
447 int ret;
447 448
448 if (!accept) 449 if (!accept)
449 return; 450 return;
@@ -458,7 +459,12 @@ void trace_view_adv_filter_callback(gboolean accept,
458 459
459 event_filter = trace_view_store_get_event_filter(store); 460 event_filter = trace_view_store_get_event_filter(store);
460 461
461 pevent_filter_add_filter_str(event_filter, text, &error_str); 462 ret = pevent_filter_add_filter_str(event_filter, text, &error_str);
463 if (ret < 0) {
464 warning("filter failed due to: %s", error_str);
465 free(error_str);
466 return;
467 }
462 468
463 /* Keep track of the currently selected row */ 469 /* Keep track of the currently selected row */
464 row = trace_view_get_selected_row(GTK_WIDGET(trace_tree)); 470 row = trace_view_get_selected_row(GTK_WIDGET(trace_tree));