Browse Source

MSVC: Fix warning about assignment in condition

meson
Max Bruckner 7 years ago
parent
commit
ac368e9dfb
  1. 3
      cJSON.c

3
cJSON.c

@ -147,7 +147,8 @@ static unsigned char* cJSON_strdup(const unsigned char* string, const internal_h
}
length = strlen((const char*)string) + sizeof("");
if (!(copy = (unsigned char*)hooks->allocate(length)))
copy = (unsigned char*)hooks->allocate(length);
if (copy == NULL)
{
return NULL;
}

Loading…
Cancel
Save