Re: [libvirt] [PATCH 4/7] virGetHostnameLocalhost: avoid FP NULL-ptr-deref from clang

2010-04-14 Thread Daniel P. Berrange
On Wed, Apr 14, 2010 at 06:02:33PM +0200, Jim Meyering wrote: > From: Jim Meyering > > * src/util/util.c (virGetHostnameLocalhost): Add an sa_assert > to tell clang it's ok to dereference "info" after a non-failing > getaddrinfo call. > --- > src/util/util.c |3 +++ > 1 files changed, 3 inse

Re: [libvirt] [PATCH 4/7] virGetHostnameLocalhost: avoid FP NULL-ptr-deref from clang

2010-04-14 Thread Eric Blake
On 04/14/2010 10:02 AM, Jim Meyering wrote: > From: Jim Meyering > > * src/util/util.c (virGetHostnameLocalhost): Add an sa_assert > to tell clang it's ok to dereference "info" after a non-failing > getaddrinfo call. > --- > src/util/util.c |3 +++ > 1 files changed, 3 insertions(+), 0 delet

[libvirt] [PATCH 4/7] virGetHostnameLocalhost: avoid FP NULL-ptr-deref from clang

2010-04-14 Thread Jim Meyering
From: Jim Meyering * src/util/util.c (virGetHostnameLocalhost): Add an sa_assert to tell clang it's ok to dereference "info" after a non-failing getaddrinfo call. --- src/util/util.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/util/util.c b/src/util/util.c inde