Message ID | 20210927095252.2374148-4-laurent@vivier.eu |
---|---|
State | New |
Headers | show |
Series | [PULL,1/5] docs/nvdimm: Update nvdimm option value in machine example | expand |
diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index e00255f7ee70..a7e197a90bf7 100644 --- a/monitor/hmp-cmds.c +++ b/monitor/hmp-cmds.c @@ -1496,7 +1496,7 @@ void hmp_change(Monitor *mon, const QDict *qdict) } if (strcmp(target, "passwd") == 0 || strcmp(target, "password") == 0) { - if (arg) { + if (!arg) { MonitorHMP *hmp_mon = container_of(mon, MonitorHMP, common); monitor_read_password(hmp_mon, hmp_change_read_arg, NULL); return;