json: fix encoding of string null pointer
A segmentation fault occurs when a zero initialized struct with a string
field (JSON_TOK_STRING) is encoded. Encode a string null pointer as an
empty JSON string "".
Signed-off-by:
Christoph Winklhofer <cj.winklhofer@gmail.com>
Loading
Please sign in to comment