mirror of
https://github.com/xemu-project/xemu.git
synced 2026-11-12 00:59:03 +01:00
HMP: Initialize err before using
When bdrv_snapshot_delete return fail, the errp will not be assigned a valid value in error_propagate as errp didn't be initialized in hmp_delvm, then error_reportf_err will use an uninitialized value(call by hmp_delvm), and qemu crash. Signed-off-by: zhangjixiang <jixiang_zhang@h3c.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
1 parent
4bdc24fa01
commit
32cd6550f7
1 file changed
+1
-1
Reference in new issue
Block a user