diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/box.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/box.c b/render/box.c index 369fe90b9..7e0df2483 100644 --- a/render/box.c +++ b/render/box.c @@ -452,7 +452,7 @@ void box_dump(struct box *box, unsigned int depth) fprintf(stderr, " next_float %p", box->next_float); fprintf(stderr, "\n"); - for (c = box->children; c->next; c = c->next) + for (c = box->children; c && c->next; c = c->next) ; if (box->last != c) fprintf(stderr, "warning: box->last %p (should be %p) " |