From: Eric S. Raymond Date: Sat, 27 Sep 2014 15:06:57 +0000 (-0400) Subject: Improve error localization. X-Git-Tag: 1.3~10 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=af44161d9f553b9c27d428495b6dd7fe58e297f1;p=microjson.git Improve error localization. --- diff --git a/mjson.c b/mjson.c index f855ff6..e735d8b 100644 --- a/mjson.c +++ b/mjson.c @@ -248,10 +248,8 @@ static int json_internal_read_object(const char *cp, else if (*cp == '"') { state = in_attr; pattr = attrbuf; -#ifndef JSON_MINIMAL if (end != NULL) *end = cp; -#endif } else if (*cp == '}') break; else {