--- libelwix/src/json.c 2025/08/21 15:40:07 1.11.2.1 +++ libelwix/src/json.c 2025/08/21 15:41:26 1.11.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: json.c,v 1.11.2.1 2025/08/21 15:40:07 misho Exp $ +* $Id: json.c,v 1.11.2.2 2025/08/21 15:41:26 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -1336,12 +1336,10 @@ json_objscope(const char *key, const char *jstr, jtok_ int json_validate(const char *jstr) { - register int o = 0, a = 0, s = 0, pos = 0; + register int o = 0, a = 0, pos = 0; - while (isspace(jstr[pos]) || jstr[pos] != '{') { + while (isspace(jstr[pos]) || jstr[pos] != '{') pos++; - s++; - } do { switch (jstr[pos++]) {