projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test NULL at clone filter begin
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
lttv
/
filter.c
diff --git
a/ltt/branches/poly/lttv/lttv/filter.c
b/ltt/branches/poly/lttv/lttv/filter.c
index dbdb16026f63abef0d89b8fa17cefe05b6cf0b8e..77c73e286c33a163860a8cbd2ccba7170313dc1f 100644
(file)
--- 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*
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.04146 seconds
and
4
git commands to generate.