]> xenbits.xensource.com Git - libvirt.git/commit
virGetHostnameLocalhost: avoid FP NULL-ptr-deref from clang
authorJim Meyering <meyering@redhat.com>
Wed, 7 Apr 2010 15:23:24 +0000 (17:23 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 14 Apr 2010 18:10:19 +0000 (20:10 +0200)
commit6e2f811443ff228d59c8d5f21e5b569d1cf36c58
tree6171d6ceed6f0c3d8f82c47acaecedd79dbd2db9
parentb6719eab9e95c5daeeea85fe62e6270e1d5a0c58
virGetHostnameLocalhost: avoid FP NULL-ptr-deref from clang

* 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