* lib/get_gid.c: gidstr should not be NULL, but the check was

meant to make sure it is not empty.
	* lib/get_uid.c: Likewise.
This commit is contained in:
nekral-guest
2009-04-23 11:46:06 +00:00
parent 7b562d96b3
commit 0c6159650d
3 changed files with 14 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ int get_gid (const char *gidstr, gid_t *gid)
errno = 0;
val = strtoll (gidstr, &endptr, 10);
if ( ('\0' == gidstr)
if ( ('\0' == *gidstr)
|| ('\0' != *endptr)
|| (ERANGE == errno)
|| (val != (gid_t)val)) {