---
 third_party/sptree.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/third_party/sptree.h b/third_party/sptree.h
index 865b70a..7e1c87e 100644
--- a/third_party/sptree.h
+++ b/third_party/sptree.h
@@ -498,9 +498,9 @@ sptree_##name##_iterator_init_set(sptree_##name *t, 
sptree_##name##_iterator **i
         *i = realloc(*i, sizeof(**i) + sizeof(spnode_t) * (t->max_depth + 1)); 
           \
                                                                                
           \
     (*i)->t = t;                                                               
           \
+    (*i)->level = -1;                                                          
           \
     if (t->root == SPNIL) return;                                              
           \
                                                                                
           \
-    (*i)->level = -1;                                                          
           \
     (*i)->max_depth = t->max_depth;                                            
           \
     (*i)->stack[0] = t->root;                                                  
           \
                                                                                
           \
-- 
1.7.3.2


_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to