From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adHX8-0000GM-1w for qemu-devel@nongnu.org; Tue, 08 Mar 2016 08:18:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adHX7-0004CU-7W for qemu-devel@nongnu.org; Tue, 08 Mar 2016 08:18:41 -0500 Date: Tue, 8 Mar 2016 14:18:33 +0100 From: Kevin Wolf Message-ID: <20160308131833.GF5807@noname.str.redhat.com> References: <1457425476-32547-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1457425476-32547-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 0/3] vmdk: Move descriptor buffers to heap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: pbonzini@redhat.com, peterx@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org Am 08.03.2016 um 09:24 hat Fam Zheng geschrieben: > All three functions are not in hot path (all run once for the BDS lifecycle), > so it's okay to convert to g_malloc0. Yeah, it's okay, but still kind of useless to memset the whole buffer before you overwrite it anyway. There's also a useless ret = 0 somewhere. I'd prefer not to do that in the next series. Anyway, thanks, applied to the block branch. Kevin