Skip to content
Snippets Groups Projects
Commit 4a883738 authored by Markus Armbruster's avatar Markus Armbruster
Browse files

qapi: Replace qmp_dispatch()'s TODO comment by an explanation


Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Message-Id: <20200317115459.31821-25-armbru@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
parent a62c6174
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,11 @@ QDict *qmp_dispatch(QmpCommandList *cmds, QObject *request,
g_assert(!ret);
return NULL;
} else if (!ret) {
/* TODO turn into assertion */
/*
* When the command's schema has no 'returns', cmd->fn()
* leaves @ret null. The QMP spec calls for an empty object
* then; supply it.
*/
ret = QOBJECT(qdict_new());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment