mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
monitor: Assert qmp_schema_json[] is sane
qmp_query_qmp_schema() parses qmp_schema_json[] with qobject_from_json(). This must not fail, so pass &error_abort. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <1488317230-26248-17-git-send-email-armbru@redhat.com>
This commit is contained in:
parent
02146d27c3
commit
b0f36b23f1
@ -953,7 +953,7 @@ EventInfoList *qmp_query_events(Error **errp)
|
|||||||
static void qmp_query_qmp_schema(QDict *qdict, QObject **ret_data,
|
static void qmp_query_qmp_schema(QDict *qdict, QObject **ret_data,
|
||||||
Error **errp)
|
Error **errp)
|
||||||
{
|
{
|
||||||
*ret_data = qobject_from_json(qmp_schema_json, NULL);
|
*ret_data = qobject_from_json(qmp_schema_json, &error_abort);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user