From 2e9ce532004f7a6de4f26f18bfeccff09a52c2c3 Mon Sep 17 00:00:00 2001 From: Tong Ho Date: Fri, 1 Apr 2022 12:06:31 -0700 Subject: [PATCH] xlnx-bbram: hw/nvram: Fix uninitialized Error * This adds required initialization of Error * variable. Signed-off-by: Tong Ho Reviewed-by: Francisco Iglesias Signed-off-by: Peter Maydell --- hw/nvram/xlnx-bbram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/nvram/xlnx-bbram.c b/hw/nvram/xlnx-bbram.c index b70828e5bf..6ed32adad9 100644 --- a/hw/nvram/xlnx-bbram.c +++ b/hw/nvram/xlnx-bbram.c @@ -89,7 +89,7 @@ static bool bbram_pgm_enabled(XlnxBBRam *s) static void bbram_bdrv_error(XlnxBBRam *s, int rc, gchar *detail) { - Error *errp; + Error *errp = NULL; error_setg_errno(&errp, -rc, "%s: BBRAM backstore %s failed.", blk_name(s->blk), detail);