From: Ian Campbell Subject: Re: [PATCH libvirt] xen: handle root= in xen-xm configuration files. Date: Tue, 24 Jun 2014 10:20:34 +0100 Message-ID: <1403601634.10487.5.camel@kazak.uk.xensource.com> References: <1403018646-13890-1-git-send-email-ian.campbell@citrix.com> <1403081925.25771.62.camel@kazak.uk.xensource.com> <53A27FFE.5000403@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53A27FFE.5000403@suse.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: Jim Fehlig Cc: libvir-list@redhat.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-06-19 at 00:15 -0600, Jim Fehlig wrote: > Ian Campbell wrote: > > On Tue, 2014-06-17 at 16:24 +0100, Ian Campbell wrote: > > > >> + if (xenXMConfigGetString(conf, "extra", &extra, NULL) < 0) > >> > > > > This was subtly broken. The default needs to be "". > > > > Turns out, it wasn't :). Prior to this patch, def->os.cmdline was set > to NULL if 'extra' did not exist or was empty. I pushed a fix to > restore the behavior, as your original patch did > > https://www.redhat.com/archives/libvir-list/2014-June/msg00857.html Sorry about that and thanks for the fix. I see VIR_STRDUP actually does handle NULL input correctly, which was what I was worried about. Ian.