Skip to content
Snippets Groups Projects
Commit 7e4d5dab authored by Up-wind's avatar Up-wind Committed by Alan Wang
Browse files

Add NULL check to cJSON_SetValuestring()

If the valuestring passed to cJSON_SetValuestring is NULL, a null pointer dereference will happen.

This commit adds the NULL check of valuestring before it is dereferenced.
parent 87d8f096
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment