diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-11-18 12:15:21 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 15:26:00 -0600 |
commit | 5f370b14639370b1e010fac5b1fd094e502a781e (patch) | |
tree | ebed3290cdf54fb2d2c82ded220ab0fef12f11e8 /hw/pc.c | |
parent | 6769da29c7a3caa9de4020db87f495de692cf8e2 (diff) | |
download | qemu-5f370b14639370b1e010fac5b1fd094e502a781e.tar.gz qemu-5f370b14639370b1e010fac5b1fd094e502a781e.tar.bz2 qemu-5f370b14639370b1e010fac5b1fd094e502a781e.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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'; |