]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util.c (two more): don't use a negative value as allocation size
authorJim Meyering <meyering@redhat.com>
Mon, 1 Feb 2010 20:45:06 +0000 (21:45 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 1 Feb 2010 21:19:15 +0000 (22:19 +0100)
commitc16888a8491949d3370d5a2c210ef2c8500bc598
treea92ce45c8c228827d9a64a5b159788749d4b5c8a
parent1cb334efba3beb363ab09f0866413e6fee2a1a28
util.c (two more): don't use a negative value as allocation size

* src/util/util.c (virGetUserID, virGetGroupID): 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