From 7ea394018cb657e2a14aa547b0413f2999848ace Mon Sep 17 00:00:00 2001
From: Julian Rother <julianr@fsmpi.rwth-aachen.de>
Date: Sat, 16 Dec 2017 01:11:00 +0100
Subject: [PATCH] Fixed json parsing of the number zero

---
 util/json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/json.c b/util/json.c
index 85dbaf1..587250f 100644
--- a/util/json.c
+++ b/util/json.c
@@ -22,7 +22,7 @@ static char *skip(char *s)
 		if (*s == '"')
 			s ++;
 	}
-	else if (*s == '-' || (*s >= '1' && *s <= '9'))
+	else if (*s == '-' || (*s >= '0' && *s <= '9'))
 		for (s ++; (*s >= '0' && *s <= '9') || *s == 'e' || *s == 'E' || *s == '.' ||
 				*s == '-' || *s == '+'; s ++);
 	else if (*s == '[')
-- 
GitLab