From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxfD5-0003b5-Ni for qemu-devel@nongnu.org; Tue, 13 Oct 2009 07:06:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxfCz-0003Yq-MA for qemu-devel@nongnu.org; Tue, 13 Oct 2009 07:06:29 -0400 Received: from [199.232.76.173] (port=39476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxfCz-0003YW-FZ for qemu-devel@nongnu.org; Tue, 13 Oct 2009 07:06:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7619) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxfCy-0002fj-DG for qemu-devel@nongnu.org; Tue, 13 Oct 2009 07:06:24 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9DB6MWE021922 for ; Tue, 13 Oct 2009 07:06:22 -0400 From: Gerd Hoffmann Date: Tue, 13 Oct 2009 13:06:15 +0200 Message-Id: <1255431978-4992-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1255431978-4992-1-git-send-email-kraxel@redhat.com> References: <1255431978-4992-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/4] rom loader: use qemu_strdup. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- 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); -- 1.6.2.5