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;
|
||||
QemuThread thread;
|
||||
int ret;
|
||||
bool reconnected;
|
||||
bool reconnected = false;
|
||||
char *optstr;
|
||||
QemuOpts *opts;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user