From: Denis Vlasenko Date: Sat, 27 Sep 2008 23:39:55 +0000 (-0000) Subject: remove redundant NULL check X-Git-Tag: 1_13_0~145 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6826441a028aad602ebf21d983a4a1d843471b95;p=oweals%2Fbusybox.git remove redundant NULL check --- 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) 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;