aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-11-18 12:15:21 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 15:26:00 -0600
commit5f370b14639370b1e010fac5b1fd094e502a781e (patch)
treeebed3290cdf54fb2d2c82ded220ab0fef12f11e8 /hw/pc.c
parent6769da29c7a3caa9de4020db87f495de692cf8e2 (diff)
multiboot: Use signed type for negative error numbers
In mb_mod_length a return value is stored that is negative in error case. With an unsigned type the check goes wrong. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pc.c b/hw/pc.c
index dac01ce575..8c1b7ea575 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -634,6 +634,7 @@ static int load_multiboot(void *fw_cfg,
printf("WARNING: Too many modules loaded, aborting.\n");
break;
}
+
next_initrd = strchr(initrd_filename, ',');
if (next_initrd)
*next_initrd = '\0';