summaryrefslogtreecommitdiff
path: root/libpwdgrp/initgroups.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpwdgrp/initgroups.c')
-rw-r--r--libpwdgrp/initgroups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpwdgrp/initgroups.c b/libpwdgrp/initgroups.c
index 22ba6eb..f86b5a8 100644
--- a/libpwdgrp/initgroups.c
+++ b/libpwdgrp/initgroups.c
@@ -94,7 +94,7 @@ int initgroups(__const char *user, gid_t gid)
while ((group = __getgrent(grp_fd)) != NULL)
#endif
{
- if (group->gr_gid != gid);
+ if (group->gr_gid != gid)
{
tmp_mem = group->gr_mem;
while (*tmp_mem != NULL) {