From: compudj Date: Mon, 25 Jul 2005 20:33:18 +0000 (+0000) Subject: filter fix X-Git-Tag: v0.12.20~2518 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8856a6d51ecf6c75911cda5c3b75e0ec65e8296f;p=lttv.git filter fix git-svn-id: http://ltt.polymtl.ca/svn@971 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index 5ded4686..063b7cf2 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -4122,7 +4122,8 @@ Tab* create_tab(MainWindow * mw, Tab *copy_tab, /* Copy the previous tab's filter */ /* We can clone the filter, as we copy the trace set also */ /* The filter must always be in sync with the trace set */ - tab->filter = lttv_filter_clone(copy_tab->filter); + if(copy_tab->filter != NULL) + tab->filter = lttv_filter_clone(copy_tab->filter); } else { tab->traceset_info->traceset = lttv_traceset_new();