projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dacff7c
)
* gl/lib/mgetgroups.c (mgetgroups): Parenthesize correctly.
author
Jim Meyering
<meyering@redhat.com>
Sun, 24 Feb 2008 17:12:15 +0000
(18:12 +0100)
committer
Jim Meyering
<meyering@redhat.com>
Sun, 24 Feb 2008 17:12:15 +0000
(18:12 +0100)
gl/lib/mgetgroups.c
patch
|
blob
|
history
diff --git
a/gl/lib/mgetgroups.c
b/gl/lib/mgetgroups.c
index
01ae91e
..
ad1fd4f
100644
(file)
--- 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);