summaryrefslogtreecommitdiff
path: root/libpwdgrp
diff options
context:
space:
mode:
authorDenis Vlasenko2008-09-27 23:39:55 +0000
committerDenis Vlasenko2008-09-27 23:39:55 +0000
commit6826441a028aad602ebf21d983a4a1d843471b95 (patch)
treeafb157b512014efaf8146458606d23212bd4f3e6 /libpwdgrp
parentbb04506dc8bfdc92511b1cc0872e946ebe1ac087 (diff)
downloadbusybox-6826441a028aad602ebf21d983a4a1d843471b95.zip
busybox-6826441a028aad602ebf21d983a4a1d843471b95.tar.gz
remove redundant NULL check
Diffstat (limited to 'libpwdgrp')
-rw-r--r--libpwdgrp/pwd_grp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c
index 223cbde..56bfcbe 100644
--- a/libpwdgrp/pwd_grp.c
+++ b/libpwdgrp/pwd_grp.c
@@ -661,15 +661,11 @@ int initgroups(const char *user, gid_t gid)
int ngroups;
gid_t *group_list = getgrouplist_internal(&ngroups, user, gid);
- if (!group_list)
- return -1;
-
ngroups = setgroups(ngroups, group_list);
free(group_list);
return ngroups;
}
-/* TODO: uclibc needs this ported to it! */
int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups)
{
int ngroups_old = *ngroups;