]> xenbits.xensource.com Git - libvirt.git/commit
util.c (virGetUserEnt): don't use a negative value as allocation size
authorJim Meyering <meyering@redhat.com>
Thu, 28 Jan 2010 12:37:05 +0000 (13:37 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 29 Jan 2010 20:43:02 +0000 (21:43 +0100)
commit5ec55b4ff0ce49032caf2373dcda52e463b81a90
treeb1e6807fdd6d2658838e2086eb2dffbe1678b68c
parent3bd3d6b0bf9b8f054a8b31c716f03e2d0dd8751f
util.c (virGetUserEnt): don't use a negative value as allocation size

* src/util/util.c (virGetUserEnt): In the unlikely event that
sysconf(_SC_GETPW_R_SIZE_MAX) fails, don't use -1 as the size in
the subsequent allocation.
src/util/util.c