]> Git Repo - qemu.git/commit
qdict: Make qdict_get_qlist() safe like qdict_get_qdict()
authorMarkus Armbruster <[email protected]>
Fri, 17 Feb 2017 20:38:12 +0000 (21:38 +0100)
committerMarkus Armbruster <[email protected]>
Wed, 22 Feb 2017 18:51:37 +0000 (19:51 +0100)
commitb25f23e7dbc6bc0dcda010222a4f178669d1aedc
treef81f708767f5f2ccea3118d88e86e6075c96ae9b
parentd3be4b57cefde105299e234f0659b77f37920c72
qdict: Make qdict_get_qlist() safe like qdict_get_qdict()

Commit 89cad9f changed qdict_get_qdict() to return NULL instead of
crash when the key doesn't exist or its value isn't a QDict.
Commit 2d6421a neglected to do the same for qdict_get_qlist().
Correct that, and update the function comments.

qdict_get_obj() is now unused, remove.

Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <1487363905[email protected]>
Reviewed-by: Eric Blake <[email protected]>
qobject/qdict.c
This page took 0.025534 seconds and 4 git commands to generate.