X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Ffilter.c;h=77c73e286c33a163860a8cbd2ccba7170313dc1f;hb=ef3818b1cfb0e0ac74fe8ee56b7cc326a1d4a587;hp=dbdb16026f63abef0d89b8fa17cefe05b6cf0b8e;hpb=2ea36caf80da2b86d4b565fe3cbded286c7664d7;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index dbdb1602..77c73e28 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -121,13 +121,15 @@ void lttv_filter_tree_destroy(LttvFilter* tree) { LttvFilter* lttv_filter_clone(LttvFilter* tree) { - LttvFilter* newtree = lttv_filter_tree_new(); + if(tree == NULL) return NULL; + + LttvFilter* newtree = lttv_filter_tree_new(); - /* - * TODO : Copy tree into new tree - */ + /* + * TODO : Copy tree into new tree + */ - return newtree; + return newtree; }