projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfc763f
)
Clean up assertion in get_boot_devices_list()
author
Markus Armbruster
<armbru@redhat.com>
Tue, 8 Nov 2011 09:58:00 +0000
(10:58 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Wed, 9 Nov 2011 18:06:20 +0000
(12:06 -0600)
g_strdup() can't fail, remove assertion. Assert its argument can't be
null, because that's not obvious (add_boot_device_path() ensures it).
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index 641629b1ce4b6847c1b917706f6ca7820d5884bc..f169aac1f9256350b297fe561ed7783c90dd424b 100644
(file)
--- a/
vl.c
+++ b/
vl.c
@@
-915,8
+915,8
@@
char *get_boot_devices_list(uint32_t *size)
} else if (devpath) {
bootpath = devpath;
} else {
+ assert(i->suffix);
bootpath = g_strdup(i->suffix);
- assert(bootpath);
}
if (total) {