summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gl/lib/mgetgroups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gl/lib/mgetgroups.c b/gl/lib/mgetgroups.c
index 01ae91e3a..ad1fd4f3b 100644
--- a/gl/lib/mgetgroups.c
+++ b/gl/lib/mgetgroups.c
@@ -103,7 +103,7 @@ mgetgroups (char const *username, gid_t gid, GETGROUPS_T **groups)
max_n_groups reflects the new number of groups. */
if (xalloc_oversized (max_n_groups, sizeof *h)
- || (h = realloc (g, max_n_groups * sizeof *h) == NULL))
+ || (h = realloc (g, max_n_groups * sizeof *h)) == NULL)
{
int saved_errno = errno;
free (g);