mirror of https://github.com/xemu-project/xemu.git
test-char: fix undefined behavior
Fixes the following failure with --enable-debug: /tmp/qemu-test/src/tests/test-char.c:838:10: runtime error: load of value 40, which is not a valid value for type bool SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /tmp/qemu-test/src/tests/test-char.c:838:10 in Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
377b155bde
commit
edc6e5015d
|
@ -745,7 +745,7 @@ static void char_socket_server_test(gconstpointer opaque)
|
||||||
Visitor *v;
|
Visitor *v;
|
||||||
QemuThread thread;
|
QemuThread thread;
|
||||||
int ret;
|
int ret;
|
||||||
bool reconnected;
|
bool reconnected = false;
|
||||||
char *optstr;
|
char *optstr;
|
||||||
QemuOpts *opts;
|
QemuOpts *opts;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue