--- libelwix/src/json.c 2017/11/28 13:42:22 1.1.2.7 +++ libelwix/src/json.c 2017/11/28 14:57:45 1.1.2.8 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: json.c,v 1.1.2.7 2017/11/28 13:42:22 misho Exp $ +* $Id: json.c,v 1.1.2.8 2017/11/28 14:57:45 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -325,10 +325,8 @@ json_parse(json_t * __restrict json, const char *jstr, } break; case '\"': - if (json_parse_string(json, jstr, jlen, jtoks, toksnum) == -1) { - elwix_SetErr(J_ERR_INVAL, "%s", jerrstr[J_ERR_INVAL]); + if (json_parse_string(json, jstr, jlen, jtoks, toksnum) == -1) return (u_int) -1; - } cx++; /* start new string token */ if (jtoks && json->h_parent != -1) jtoks[json->h_parent].tok_size++;