mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
t/ctl: Ensure connection is initialized properly
This commit is contained in:
parent
0cec22e907
commit
b95481ebaa
|
@ -183,8 +183,13 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ipc_connection ipc_c;
|
// Initializing the logging level also zeroes the rest of the struct.
|
||||||
|
struct ipc_connection ipc_c = {
|
||||||
|
.log_level = U_LOGGING_INFO,
|
||||||
|
};
|
||||||
|
|
||||||
os_mutex_init(&ipc_c.mutex);
|
os_mutex_init(&ipc_c.mutex);
|
||||||
|
|
||||||
int ret = do_connect(&ipc_c);
|
int ret = do_connect(&ipc_c);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue