test NULL at clone filter begin
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 16 Mar 2005 14:47:01 +0000 (14:47 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 16 Mar 2005 14:47:01 +0000 (14:47 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@890 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/lttv/filter.c

index dbdb16026f63abef0d89b8fa17cefe05b6cf0b8e..77c73e286c33a163860a8cbd2ccba7170313dc1f 100644 (file)
@@ -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;
     
 }
 
This page took 0.024323 seconds and 4 git commands to generate.