|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] Clean up assertion in get_boot_devices_list() |
Date: | Wed, 09 Nov 2011 13:44:28 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13 |
On 11/08/2011 03:58 AM, Markus Armbruster wrote:
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<address@hidden>
Applied. Thanks. Regards, Anthony Liguori
--- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 641629b..f169aac 100644 --- 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) {
[Prev in Thread] | Current Thread | [Next in Thread] |