Merge pull request #395 from bjda/more_const

Add const qualifier to cJSON_CreateStringArray
This commit is contained in:
Alanscut
2019-10-20 22:46:05 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -2524,7 +2524,7 @@ CJSON_PUBLIC(cJSON *) cJSON_CreateDoubleArray(const double *numbers, int count)
return a;
}
CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char **strings, int count)
CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char *const *strings, int count)
{
size_t i = 0;
cJSON *n = NULL;