about summary refs log tree commit diff
path: root/grp
diff options
context:
space:
mode:
Diffstat (limited to 'grp')
-rw-r--r--grp/initgroups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grp/initgroups.c b/grp/initgroups.c
index f86f5c63f4..5a3edecf09 100644
--- a/grp/initgroups.c
+++ b/grp/initgroups.c
@@ -108,7 +108,7 @@ internal_getgrouplist (const char *user, gid_t group, long int *size,
 	{
 	  long int inner;
 	  for (inner = 0; inner < prev_start; ++inner)
-	    if ((*groupsp)[inner] == (*groups)[cnt])
+	    if ((*groupsp)[inner] == (*groupsp)[cnt])
 	      break;
 
 	  if (inner < prev_start)