From e11eb0203fac159dba5483694010519ae18bde3f Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 14 Nov 2019 11:38:58 -0600 Subject: [PATCH] d/vive: Initializer order fix --- src/xrt/drivers/vive/vive_device.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/xrt/drivers/vive/vive_device.c b/src/xrt/drivers/vive/vive_device.c index 08c9e3efb..afed82797 100644 --- a/src/xrt/drivers/vive/vive_device.c +++ b/src/xrt/drivers/vive/vive_device.c @@ -840,13 +840,15 @@ vive_sensors_read_config(struct vive_device *d) unsigned char *config_json = U_TYPED_ARRAY_CALLOC(unsigned char, 32768); - z_stream strm = {.zalloc = Z_NULL, - .zfree = Z_NULL, - .opaque = Z_NULL, - .avail_in = count, - .next_in = config_z, - .avail_out = 32768, - .next_out = config_json}; + z_stream strm = { + .next_in = config_z, + .avail_in = count, + .next_out = config_json, + .avail_out = 32768, + .zalloc = Z_NULL, + .zfree = Z_NULL, + .opaque = Z_NULL, + }; ret = inflateInit(&strm); if (ret != Z_OK) {