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

2015-10-22 Thread Markus Armbruster
Luiz Capitulino writes: > On Thu, 15 Oct 2015 16:15:31 +0200 > Markus Armbruster wrote: > >> The qobject_to_FOO() crash on null, which is a trap for the unwary. >> Return null instead, and simplify a few callers. >> >> Throw in a patch to drop QObject_HEAD. >> >> Luiz, I'm happy to take this t

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

2015-10-15 Thread Luiz Capitulino
On Thu, 15 Oct 2015 16:15:31 +0200 Markus Armbruster wrote: > The qobject_to_FOO() crash on null, which is a trap for the unwary. > Return null instead, and simplify a few callers. > > Throw in a patch to drop QObject_HEAD. > > Luiz, I'm happy to take this through my tree, since got a QMP serie

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

2015-10-15 Thread Markus Armbruster
The qobject_to_FOO() crash on null, which is a trap for the unwary. Return null instead, and simplify a few callers. Throw in a patch to drop QObject_HEAD. Luiz, I'm happy to take this through my tree, since got a QMP series based on it (to be posted shortly). Markus Armbruster (6): qobject: D