Return to json.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / libelwix / src |
version 1.8.10.1, 2020/08/22 01:18:55 | 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; |
} | } |