Return to json.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / libelwix / src |
version 1.9, 2021/03/21 01:32:04 | version 1.9.34.1, 2024/10/26 14:55:56 |
---|---|
Line 427 json_token2val(const char *jstr, jtok_t * __restrict t | Line 427 json_token2val(const char *jstr, jtok_t * __restrict t |
return NULL; | return NULL; |
AIT_SET_STRSIZ(v, json_toklen(tok)); | AIT_SET_STRSIZ(v, json_toklen(tok)); |
strncpy(AIT_GET_STR(v), json_tokstr(jstr, tok), AIT_LEN(v) - 1); | if (AIT_GET_STR(v)) |
strncpy(AIT_GET_STR(v), json_tokstr(jstr, tok), AIT_LEN(v) - 1); | |
else | |
ait_freeVar(&v); | |
return v; | return v; |
} | } |