diff options
| author | Markus Armbruster | 2011-11-08 10:58:00 +0100 |
|---|---|---|
| committer | Anthony Liguori | 2011-11-09 19:06:20 +0100 |
| commit | 1bf6ccd372aeb8e1a36da35fa15cf24e42f7e0b7 (patch) | |
| tree | 77aa3ccc965778ceebb5a5430bf450614a2104c3 | |
| parent | Replace WriteFileEx with WriteFile in qemu_create_pidfile (diff) | |
| download | qemu-1bf6ccd372aeb8e1a36da35fa15cf24e42f7e0b7.tar.gz qemu-1bf6ccd372aeb8e1a36da35fa15cf24e42f7e0b7.tar.xz qemu-1bf6ccd372aeb8e1a36da35fa15cf24e42f7e0b7.zip | |
Clean up assertion in get_boot_devices_list()
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>
| -rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
