summaryrefslogtreecommitdiffstats
path: root/playtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'playtree.c')
-rw-r--r--playtree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/playtree.c b/playtree.c
index f9dc4f2d74..7662ce0439 100644
--- a/playtree.c
+++ b/playtree.c
@@ -477,6 +477,9 @@ int
play_tree_iter_step(play_tree_iter_t* iter, int d,int with_nodes) {
play_tree_t* pt;
+ if ( !iter ) return PLAY_TREE_ITER_ENTRY;
+ if ( !iter->root ) return PLAY_TREE_ITER_ENTRY;
+
#ifdef MP_DEBUG
assert(iter != NULL);
assert(iter->root != NULL);