mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
qapi: Replace qmp_dispatch()'s TODO comment by an explanation
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200317115459.31821-25-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
+5
-1
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user