[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] spapr: fix potential segfault due to uninitialized
From: |
Michael Roth |
Subject: |
[Qemu-devel] [PATCH] spapr: fix potential segfault due to uninitialized Error* |
Date: |
Thu, 26 Feb 2015 19:14:12 -0600 |
Introduced by 361f93e.
Signed-off-by: Michael Roth <address@hidden>
---
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
- [Qemu-devel] [PATCH] spapr: fix potential segfault due to uninitialized Error*,
Michael Roth <=