From: compudj Date: Wed, 16 Mar 2005 14:47:01 +0000 (+0000) Subject: test NULL at clone filter begin X-Git-Tag: v0.12.20~2599 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ef3818b1cfb0e0ac74fe8ee56b7cc326a1d4a587;p=lttv.git test NULL at clone filter begin git-svn-id: http://ltt.polymtl.ca/svn@890 04897980-b3bd-0310-b5e0-8ef037075253 --- 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; }