From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:32870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb6gE-00043B-RQ for qemu-devel@nongnu.org; Thu, 15 Dec 2011 03:28:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rb6g9-0006Tc-Ti for qemu-devel@nongnu.org; Thu, 15 Dec 2011 03:28:42 -0500 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:48360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb6g9-0006TA-8B for qemu-devel@nongnu.org; Thu, 15 Dec 2011 03:28:37 -0500 Date: Thu, 15 Dec 2011 16:28:28 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20111215082828.GA33201@cs.nctu.edu.tw> References: <4EE9AB5A.4080306@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4EE9AB5A.4080306@linux.vnet.ibm.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] some questions about g_malloc in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhi Hui Li Cc: Kevin Wolf , zhihuili@cn.ibm.com, QEMU-devel , Stefan Hajnoczi Hi, I found this in HACKING: Please note that NULL check for the g_malloc result is redundant and that g_malloc() call with zero size is not allowed. Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj