From: Ian Jackson Subject: Re: [PATCH 3/9] libxl: json string object can be NULL Date: Mon, 13 Jul 2015 18:16:11 +0100 Message-ID: <21923.62043.53475.123432@mariner.uk.xensource.com> References: <1436551257-28887-1-git-send-email-wei.liu2@citrix.com> <1436551257-28887-4-git-send-email-wei.liu2@citrix.com> <1436781747.7019.64.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZEhL3-0005Y6-2W for xen-devel@lists.xenproject.org; Mon, 13 Jul 2015 17:16:21 +0000 In-Reply-To: <1436781747.7019.64.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Xen-devel , Wei Liu , Andrew Cooper List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH 3/9] libxl: json string object can be NULL"): > On Fri, 2015-07-10 at 19:00 +0100, Wei Liu wrote: > > Signed-off-by: Wei Liu > > Acked-by: Ian Campbell > > It occurs to me that since libxl__strdup can never return NULL due to > allocation failure we could consider make libxl__strdup(gc, NULL) be > well defined as returning NULL. This would be a nicer fix, yes. Ian.