Browse Source

Utils: InplaceDecodePointerString: Check for NULL

pull/97/head
Max Bruckner 8 years ago
parent
commit
a2309a509d
  1. 5
      cJSON_Utils.c

5
cJSON_Utils.c

@ -208,6 +208,11 @@ cJSON *cJSONUtils_GetPointer(cJSON *object, const char *pointer)
static void cJSONUtils_InplaceDecodePointerString(char *string)
{
char *s2 = string;
if (string == NULL) {
return;
}
for (; *string; s2++, string++)
{
*s2 = (*string != '~')

Loading…
Cancel
Save