Add protection for additional _next when end_p was reached.
This commit is contained in:
1 parent
a2f46cd336
commit
4e1f5f0ff7
1 file changed
+1
-1
+1
-1
@@ -414,7 +414,7 @@ typedef enum {
|
||||
{ \
|
||||
assert (it != NULL); \
|
||||
assert (child == 0 || child == 1); \
|
||||
/* FIXME: If end_p, do nothing ? */ \
|
||||
if (it->cpt == 0) return; \
|
||||
unsigned int cpt = it->cpt - 1; \
|
||||
node_t *n = it->stack[cpt]; \
|
||||
const int right = 1 ^ child; \
|
||||
|
||||
Reference in new issue
Block a user