aboutsummaryrefslogtreecommitdiff
path: root/dump/dump-hmp-cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'dump/dump-hmp-cmds.c')
-rw-r--r--dump/dump-hmp-cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dump/dump-hmp-cmds.c b/dump/dump-hmp-cmds.c
index 3dbf44372c..e5053b04cd 100644
--- a/dump/dump-hmp-cmds.c
+++ b/dump/dump-hmp-cmds.c
@@ -32,7 +32,7 @@ void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict)
if (zlib + lzo + snappy + win_dmp > 1) {
error_setg(&err, "only one of '-z|-l|-s|-w' can be set");
- hmp_handle_error(mon, &err);
+ hmp_handle_error(mon, err);
return;
}
@@ -66,7 +66,7 @@ void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict)
qmp_dump_guest_memory(paging, prot, true, detach, has_begin, begin,
has_length, length, true, dump_format, &err);
- hmp_handle_error(mon, &err);
+ hmp_handle_error(mon, err);
g_free(prot);
}