From e3b74c2e70b14741815413add6dd864a188f452e Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Tue, 21 Apr 2020 01:35:21 +0200 Subject: [PATCH] d/vive: Fix _json_get_string --- src/xrt/drivers/vive/vive_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/drivers/vive/vive_device.c b/src/xrt/drivers/vive/vive_device.c index 5c79f5be8..3452b5652 100644 --- a/src/xrt/drivers/vive/vive_device.c +++ b/src/xrt/drivers/vive/vive_device.c @@ -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