* gl/lib/mgetgroups.c (mgetgroups): Parenthesize correctly.
authorJim Meyering <meyering@redhat.com>
Sun, 24 Feb 2008 17:12:15 +0000 (18:12 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 24 Feb 2008 17:12:15 +0000 (18:12 +0100)
gl/lib/mgetgroups.c

index 01ae91e..ad1fd4f 100644 (file)
@@ -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);