The following qdict_put() line does replace the value, as the
documentation says.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
monitor.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/monitor.c b/monitor.c
index a8dcfa283e..5889a32231 100644
--- a/monitor.c
+++ b/monitor.c
@@ -3930,7 +3930,6 @@ static void monitor_qmp_respond(Monitor *mon, QObject *rsp,
&& !g_strcmp0(qdict_get_try_str(qdict, "class"),
QapiErrorClass_str(ERROR_CLASS_COMMAND_NOT_FOUND))) {
/* Provide a more useful error message */
- qdict_del(qdict, "desc");
qdict_put_str(qdict, "desc", "Expecting capabilities"
" negotiation with 'qmp_capabilities'");
}
--
2.17.0.rc1.1.g4c4f2b46a3