From 55334019ac466ed1c456e0c184efaceb6c021e6d Mon Sep 17 00:00:00 2001 From: Iain Anderson Date: Wed, 4 Jul 2018 14:30:45 +0100 Subject: [PATCH] Fix toml_cat abort on empty array --- toml_cat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toml_cat.c b/toml_cat.c index 73eeab5..186ebf4 100644 --- a/toml_cat.c +++ b/toml_cat.c @@ -141,6 +141,9 @@ static void print_array(toml_array_t* curarr) printf("\n"); break; + case '\0': + break; + default: abort(); }