From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR9Wl-0006nb-B6 for qemu-devel@nongnu.org; Thu, 26 Feb 2015 20:15:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YR9Wg-000668-9z for qemu-devel@nongnu.org; Thu, 26 Feb 2015 20:15:39 -0500 Received: from e39.co.us.ibm.com ([32.97.110.160]:47156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR9Wg-00065e-1T for qemu-devel@nongnu.org; Thu, 26 Feb 2015 20:15:34 -0500 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Feb 2015 18:15:32 -0700 From: Michael Roth Date: Thu, 26 Feb 2015 19:14:12 -0600 Message-Id: <1424999652-14539-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] spapr: fix potential segfault due to uninitialized Error* List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, agraf@suse.de, armbru@redhat.com Introduced by 361f93e. Signed-off-by: Michael Roth --- hw/ppc/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index e1e66f2..2152704 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -111,7 +111,7 @@ sPAPREnvironment *spapr; static XICSState *try_create_xics(const char *type, int nr_servers, int nr_irqs, Error **errp) { - Error *err; + Error *err = NULL; DeviceState *dev; dev = qdev_create(NULL, type); -- 1.9.1