aboutsummaryrefslogtreecommitdiff
path: root/ell.c
diff options
context:
space:
mode:
Diffstat (limited to 'ell.c')
-rw-r--r--ell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ell.c b/ell.c
index d73ddc1..9bf1927 100644
--- a/ell.c
+++ b/ell.c
@@ -416,7 +416,8 @@ print_tree (struct item *tree, int level) {
printf ("%*s", level, "");
if (iter->type == ITEM_STRING) {
print_string (iter->value);
- } else if (iter->head->type == ITEM_STRING
+ } else if (iter->head
+ && iter->head->type == ITEM_STRING
&& !strcmp (iter->head->value, "list")) {
printf ("[");
print_tree (iter->head->next, level + 1);