diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-05-21 17:11:16 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-05-21 17:11:16 +0200 |
commit | 1ede1ed68646d7b95481d1d595aa2c9757326edc (patch) | |
tree | 519974beb5988307ef1dbe53ff3a10fb4989928d | |
parent | 1c2db8ad6b2629197543547bba4a056e3fb6bfde (diff) | |
download | ell-1ede1ed68646d7b95481d1d595aa2c9757326edc.tar.gz ell-1ede1ed68646d7b95481d1d595aa2c9757326edc.tar.xz ell-1ede1ed68646d7b95481d1d595aa2c9757326edc.zip |
Fix crash in print_tree()
-rw-r--r-- | ell.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |