From ef3818b1cfb0e0ac74fe8ee56b7cc326a1d4a587 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 16 Mar 2005 14:47:01 +0000 Subject: [PATCH] test NULL at clone filter begin git-svn-id: http://ltt.polymtl.ca/svn@890 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/filter.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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; } -- 2.34.1