]> git.proxmox.com Git - mirror_qemu.git/commit
test-visitor-serialization: Pass &error_abort to qobject_from_json()
authorMarkus Armbruster <armbru@redhat.com>
Tue, 28 Feb 2017 21:27:01 +0000 (22:27 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 7 Mar 2017 15:07:47 +0000 (16:07 +0100)
commit02146d27c33675d511dd34134536416c7cd774da
tree6e44a6b7cb4c4a5c8c986fb371667baf983a6321
parentaec4b054ea36c53c8b887da99f20010133b84378
test-visitor-serialization: Pass &error_abort to qobject_from_json()

qmp_deserialize() calls qobject_from_json() ignoring errors.  It
passes the result to qobject_input_visitor_new(), which asserts it's
not null.  Therefore, we can just as well pass &error_abort to
qobject_from_json().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <1488317230-26248-16-git-send-email-armbru@redhat.com>
tests/test-visitor-serialization.c