diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-26 12:18:24 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-30 08:39:29 -0500 |
commit | 14a3f32d9e0c955a63b046fd3542127d1778520b (patch) | |
tree | 664971608ac2d55d178fea4be40109e52e9b595b /hw | |
parent | 9c282718aafd021661f0fa0431322a7df75705b0 (diff) | |
download | qemu-14a3f32d9e0c955a63b046fd3542127d1778520b.zip qemu-14a3f32d9e0c955a63b046fd3542127d1778520b.tar.gz qemu-14a3f32d9e0c955a63b046fd3542127d1778520b.tar.bz2 |
rom loader: use qemu_strdup.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/loader.c b/hw/loader.c index 7aa1a67..6baafa8 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -559,7 +559,7 @@ int rom_add_file(const char *file, rom->name = qemu_strdup(file); rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name); if (rom->path == NULL) { - rom->path = strdup(file); + rom->path = qemu_strdup(file); } fd = open(rom->path, O_RDONLY | O_BINARY); |