diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-27 23:39:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-27 23:39:55 +0000 |
commit | 6826441a028aad602ebf21d983a4a1d843471b95 (patch) | |
tree | afb157b512014efaf8146458606d23212bd4f3e6 | |
parent | bb04506dc8bfdc92511b1cc0872e946ebe1ac087 (diff) | |
download | busybox-w32-6826441a028aad602ebf21d983a4a1d843471b95.tar.gz busybox-w32-6826441a028aad602ebf21d983a4a1d843471b95.tar.bz2 busybox-w32-6826441a028aad602ebf21d983a4a1d843471b95.zip |
remove redundant NULL check
-rw-r--r-- | libpwdgrp/pwd_grp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index 223cbde36..56bfcbe91 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c | |||
@@ -661,15 +661,11 @@ int initgroups(const char *user, gid_t gid) | |||
661 | int ngroups; | 661 | int ngroups; |
662 | gid_t *group_list = getgrouplist_internal(&ngroups, user, gid); | 662 | gid_t *group_list = getgrouplist_internal(&ngroups, user, gid); |
663 | 663 | ||
664 | if (!group_list) | ||
665 | return -1; | ||
666 | |||
667 | ngroups = setgroups(ngroups, group_list); | 664 | ngroups = setgroups(ngroups, group_list); |
668 | free(group_list); | 665 | free(group_list); |
669 | return ngroups; | 666 | return ngroups; |
670 | } | 667 | } |
671 | 668 | ||
672 | /* TODO: uclibc needs this ported to it! */ | ||
673 | int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups) | 669 | int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups) |
674 | { | 670 | { |
675 | int ngroups_old = *ngroups; | 671 | int ngroups_old = *ngroups; |