Skip to content
Commit d5354449 authored by Christoph Winklhofer's avatar Christoph Winklhofer Committed by Dan Kalowsky
Browse files

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: default avatarChristoph Winklhofer <cj.winklhofer@gmail.com>
parent 2a9be50c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment