qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-stable] [PULL for-2.4 v2 3/6] block: Initialize local_err in bdrv_


From: Stefan Hajnoczi
Subject: [Qemu-stable] [PULL for-2.4 v2 3/6] block: Initialize local_err in bdrv_append_temp_snapshot
Date: Tue, 7 Jul 2015 14:29:48 +0100

From: Fam Zheng <address@hidden>

Cc: address@hidden
Signed-off-by: Fam Zheng <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
 block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block.c b/block.c
index 7e130cc..42eb8e3 100644
--- a/block.c
+++ b/block.c
@@ -1271,7 +1271,7 @@ int bdrv_append_temp_snapshot(BlockDriverState *bs, int 
flags, Error **errp)
     QemuOpts *opts = NULL;
     QDict *snapshot_options;
     BlockDriverState *bs_snapshot;
-    Error *local_err;
+    Error *local_err = NULL;
     int ret;
 
     /* if snapshot, we create a temporary backing file and open it
-- 
2.4.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]