From 1cdcff1c01ff4681f8d73ec4ba9689a702c4c17a Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 24 Dec 2014 02:24:53 -0600 Subject: [PATCH] Fix bug caused by 8ca07a0 --- jv_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jv_parse.c b/jv_parse.c index 4497c42..0a06dc1 100644 --- a/jv_parse.c +++ b/jv_parse.c @@ -257,7 +257,7 @@ static pfunc found_string(struct jv_parser* p) { return "Invalid escape"; } } else { - if (c < 0x001f) + if (c > 0 && c < 0x001f) return "Invalid string: control characters from U+0000 through U+001F must be escaped"; *out++ = c; } -- 2.40.0