projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9282c2
)
tests/ivshmem-test: Supply missing initializer in get_device()
author
Markus Armbruster
<armbru@redhat.com>
Tue, 24 Nov 2015 17:06:27 +0000
(18:06 +0100)
committer
Markus Armbruster
<armbru@redhat.com>
Wed, 25 Nov 2015 09:24:04 +0000
(10:24 +0100)
If the device isn't found, the assertion uses dev without
initialization. Fix that.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <
1448384789
-14830-4-git-send-email-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
tests/ivshmem-test.c
patch
|
blob
|
history
diff --git
a/tests/ivshmem-test.c
b/tests/ivshmem-test.c
index f1793ba6fb72bc90b9d2af17031cd6bae88da4ad..8f1a849ab44e0a8978e0a433f43bbc8c9fdf848e 100644
(file)
--- a/
tests/ivshmem-test.c
+++ b/
tests/ivshmem-test.c
@@
-40,6
+40,7
@@
static QPCIDevice *get_device(void)
QPCIBus *pcibus;
pcibus = qpci_init_pc();
+ dev = NULL;
qpci_device_foreach(pcibus, 0x1af4, 0x1110, save_fn, &dev);
g_assert(dev != NULL);