d/vive: Fix _json_get_string

This commit is contained in:
Christoph Haag 2020-04-21 01:35:21 +02:00 committed by Jakob Bornecrantz
parent 2c818d5051
commit e3b74c2e70

View file

@ -610,7 +610,7 @@ static char *
_json_get_string(const cJSON *json, const char *name)
{
const cJSON *item = cJSON_GetObjectItemCaseSensitive(json, name);
return strdup(item->string);
return strdup(item->valuestring);
}
static double