Skip to contentSkip to conversation

block: Initialize local_err in bdrv_append_temp_snapshot

PATCH Applied Fam Zheng 2 participants 2 messages Jul 6, 2015 – Jul 7, 2015

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 block: Initialize local_err in bdrv_append_temp_snapshot

---
 block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block.c +1 -1
index 7e130cc..42eb8e3 100644
@@ -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
Signature · 1 line
2.4.3