Received: from eggs.gnu.org ([2001:4830:134:3::10]:51962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpErH-0006MS-Nc for qemu-devel@nongnu.org; Thu, 22 Oct 2015 08:20:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpErE-0004NF-GD for qemu-devel@nongnu.org; Thu, 22 Oct 2015 08:20:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpErE-0004MM-3W for qemu-devel@nongnu.org; Thu, 22 Oct 2015 08:20:36 -0400 From: Markus Armbruster References: <1444918537-18107-1-git-send-email-armbru@redhat.com> <20151015120651.249f46d2@redhat.com> Date: Thu, 22 Oct 2015 14:20:32 +0200 In-Reply-To: <20151015120651.249f46d2@redhat.com> (Luiz Capitulino's message of "Thu, 15 Oct 2015 12:06:51 -0400") Message-ID: <87zizb3xin.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 0/6] qobject: Make conversion from QObject * accept null List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com 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 through my tree, since got a QMP series >> based on it (to be posted shortly). > > Please do. > > Reviewed-by: Luiz Capitulino Thanks! > Btw, what do you think about this patch? :) I knew I was playing with fire %-} Right now I'm too swamped with QAPI patches to take on more. Once we flushed that queue, and got QAPI to quiet down a bit, I can take HMP and QObject off you.