]> Git Repo - qemu.git/commit
tests: Don't check qobject_type() before qobject_to_qstring()
authorMarkus Armbruster <[email protected]>
Fri, 17 Feb 2017 20:38:20 +0000 (21:38 +0100)
committerMarkus Armbruster <[email protected]>
Wed, 22 Feb 2017 18:52:06 +0000 (19:52 +0100)
commit363e13f86eb60bce1e112a35a4c107505a69c9fe
tree76361fe0824ba2f7488e03af988905b1f307f468
parentcd17ba51f5b25196c52afe5dfdd27c7dc8621cf4
tests: Don't check qobject_type() before qobject_to_qstring()

qobject_to_qstring(obj) returns NULL when obj isn't a QString.  Check
that instead of qobject_type(obj) == QTYPE_QSTRING.

Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <1487363905[email protected]>
Reviewed-by: Eric Blake <[email protected]>
tests/check-qjson.c
tests/test-qobject-output-visitor.c
This page took 0.02619 seconds and 4 git commands to generate.