Add protection for additional _next when end_p was reached.

This commit is contained in:
Patrick Pelissier committed 2017-04-01 02:04:21 +02:00
1 parent a2f46cd336
commit 4e1f5f0ff7
1 file changed
+1 -1
+1 -1
View File
@@ -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; \