qdict: Make qdict_get_qlist() safe like qdict_get_qdict()
commitb25f23e7dbc6bc0dcda010222a4f178669d1aedc
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Feb 2017 20:38:12 +0000 (17 21:38 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 22 Feb 2017 18:51:37 +0000 (22 19:51 +0100)
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 <armbru@redhat.com>
Message-Id: <1487363905-9480-2-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
qobject/qdict.c