From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YLGAq-0005cU-M6 for mharc-qemu-trivial@gnu.org; Tue, 10 Feb 2015 14:08:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLGAo-0005YH-Ho for qemu-trivial@nongnu.org; Tue, 10 Feb 2015 14:08:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLGAn-0000PP-Oi for qemu-trivial@nongnu.org; Tue, 10 Feb 2015 14:08:38 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:41575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLGAj-0000OW-20; Tue, 10 Feb 2015 14:08:33 -0500 Received: from [192.168.88.2] (mjt.vpn.tls.msk.ru [192.168.177.99]) by isrv.corpit.ru (Postfix) with ESMTP id 88998419B0; Tue, 10 Feb 2015 22:08:32 +0300 (MSK) Message-ID: <54DA5730.3060506@msgid.tls.msk.ru> Date: Tue, 10 Feb 2015 22:08:32 +0300 From: Michael Tokarev Organization: Telecom Service, JSC User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 MIME-Version: 1.0 To: Stefan Weil , QEMU Trivial References: <1423406448-31918-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1423406448-31918-1-git-send-email-sw@weilnetz.de> OpenPGP: id=804465C5 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: QEMU Developer , Luiz Capitulino Subject: Re: [Qemu-trivial] [PATCH] hmp: Fix warning from smatch (wrong argument in function call) X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2015 19:08:39 -0000 08.02.2015 17:40, Stefan Weil wrote: > Fix this warning: > hmp.c:414:38: warning: Using plain integer as NULL pointer > > qmp_query_block expects a pointer argument, so passing false is wrong. Applied to -trivial. It turns out zero and zero are different! :) Thanks, /mjt From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLGAm-0005Vu-Hk for qemu-devel@nongnu.org; Tue, 10 Feb 2015 14:08:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLGAj-0000Ob-8l for qemu-devel@nongnu.org; Tue, 10 Feb 2015 14:08:36 -0500 Message-ID: <54DA5730.3060506@msgid.tls.msk.ru> Date: Tue, 10 Feb 2015 22:08:32 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1423406448-31918-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1423406448-31918-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] hmp: Fix warning from smatch (wrong argument in function call) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , QEMU Trivial Cc: QEMU Developer , Luiz Capitulino 08.02.2015 17:40, Stefan Weil wrote: > Fix this warning: > hmp.c:414:38: warning: Using plain integer as NULL pointer > > qmp_query_block expects a pointer argument, so passing false is wrong. Applied to -trivial. It turns out zero and zero are different! :) Thanks, /mjt