]> Git Repo - qemu.git/commit - qapi/qobject-input-visitor.c
qfloat qint: Make conversion from QObject * accept null
authorMarkus Armbruster <[email protected]>
Thu, 15 Oct 2015 14:15:35 +0000 (16:15 +0200)
committerMarkus Armbruster <[email protected]>
Thu, 29 Oct 2015 13:34:45 +0000 (14:34 +0100)
commitfcf73f66a67f5e58c18216f8c8651e38cf4d90af
treeea430e78cc556fb332a9f3ec1c520e4d602700f3
parent89cad9f3ec6b30d7550fb5704475fc9c3393a066
qfloat qint: Make conversion from QObject * accept null

qobject_to_qfloat() and qobject_to_qint() crash on null, which is a
trap for the unwary.  Return null instead, and simplify a few callers.

Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <1444918537[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Luiz Capitulino <[email protected]>
qapi/qmp-input-visitor.c
qobject/qdict.c
qobject/qfloat.c
qobject/qint.c
This page took 0.024806 seconds and 4 git commands to generate.