Re: [Qemu-devel] [PATCH 6/6] qstring: Make conversion from QObject * accept null

2015-10-15 Thread Eric Blake
On 10/15/2015 08:15 AM, Markus Armbruster wrote: > qobject_to_qstring() crashes on null, which is a trap for the unwary. > Return null instead, and simplify a few callers. > > Signed-off-by: Markus Armbruster > --- > qapi/qmp-input-visitor.c | 6 +++--- > qobject/qdict.c | 11 +++--

[Qemu-devel] [PATCH 6/6] qstring: Make conversion from QObject * accept null

2015-10-15 Thread Markus Armbruster
qobject_to_qstring() crashes on null, which is a trap for the unwary. Return null instead, and simplify a few callers. Signed-off-by: Markus Armbruster --- qapi/qmp-input-visitor.c | 6 +++--- qobject/qdict.c | 11 +++ qobject/qstring.c| 4 ++-- 3 files changed, 8 inse