From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqP2p-0003l2-Q2 for qemu-devel@nongnu.org; Wed, 23 Sep 2009 06:25:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqP2f-0003f8-G6 for qemu-devel@nongnu.org; Wed, 23 Sep 2009 06:25:50 -0400 Received: from [199.232.76.173] (port=37802 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqP2f-0003ex-6z for qemu-devel@nongnu.org; Wed, 23 Sep 2009 06:25:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55795) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqP2e-0001Uc-9t for qemu-devel@nongnu.org; Wed, 23 Sep 2009 06:25:44 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8NAPh5i003171 for ; Wed, 23 Sep 2009 06:25:43 -0400 From: Mark McLoughlin Date: Wed, 23 Sep 2009 11:24:01 +0100 Message-Id: <1253701463-3134-3-git-send-email-markmc@redhat.com> In-Reply-To: <1253701463-3134-1-git-send-email-markmc@redhat.com> References: <1253701463-3134-1-git-send-email-markmc@redhat.com> Subject: [Qemu-devel] [PATCH 02/24] Don't assign a static string to NICInfo::model List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Mark McLoughlin Signed-off-by: Mark McLoughlin --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index eb01da7..f978944 100644 --- a/vl.c +++ b/vl.c @@ -2499,7 +2499,7 @@ static int usb_device_add(const char *devname, int is_hotplug) if (net_client_init(NULL, "nic", p) < 0) return -1; - nd_table[nic].model = "usb"; + nd_table[nic].model = qemu_strdup("usb"); dev = usb_net_init(&nd_table[nic]); } else if (!strcmp(devname, "bt") || strstart(devname, "bt:", &p)) { dev = usb_bt_init(devname[2] ? hci_init(p) : -- 1.6.2.5