mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
d/vive: Initializer order fix
This commit is contained in:
parent
282f38ca62
commit
e11eb0203f
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue