summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-02-24 18:12:15 +0100
committerJim Meyering <meyering@redhat.com>2008-02-24 18:12:15 +0100
commit9396e9104e9965b9608a3652c18d7c2d94ea3351 (patch)
treedd0748ee685963e538f78e5afb3ac556c64dea14
parentdacff7cb2b2d8765828b10674dc515292584a432 (diff)
downloadcoreutils-9396e9104e9965b9608a3652c18d7c2d94ea3351.tar.xz
* gl/lib/mgetgroups.c (mgetgroups): Parenthesize correctly.
-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);