From: Ian Campbell Subject: Re: [PATCH] libxl: handle null lists in libxl_string_list_length Date: Thu, 3 Oct 2013 14:42:21 +0100 Message-ID: <1380807741.25618.14.camel@kazak.uk.xensource.com> References: <1380281350-32115-1-git-send-email-mattjd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1380281350-32115-1-git-send-email-mattjd@gmail.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: Matthew Daley Cc: Andrew Cooper , Boris Ostrovsky , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2013-09-27 at 23:29 +1200, Matthew Daley wrote: > After commit b0be2b12 ("libxl: fix libxl_string_list_length and its only > caller") libxl_string_list_length no longer handles null (empty) lists. Fix > so they are handled, returning length 0. > > While at it, remove the unneccessary undereferenced null pointer check > and tidy the layout of the function. > > Reported-by: Boris Ostrovsky > Signed-off-by: Matthew Daley acked + applied, thanks. Ian.