Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-04-03 22:08:13 +0400
committerCorinna Vinschen <corinna@vinschen.de>2000-04-03 22:08:13 +0400
commit476839eb03747d00f6e9397357182f8cf35865b1 (patch)
treebeb8d1b7e1913a938c445dc96891b4af4b98a4d0 /winsup/cygwin/grp.cc
parentcf11ab4e66d942505465b482fa3a2061efd25200 (diff)
* grp.cc (parse_grp): Save empty array instead of
NULL in gr_mem if no supplementary group is given.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r--winsup/cygwin/grp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc
index d8a0783cf..2009275c7 100644
--- a/winsup/cygwin/grp.cc
+++ b/winsup/cygwin/grp.cc
@@ -92,7 +92,7 @@ parse_grp (struct group &grp, const char *line)
grp.gr_mem = namearray;
}
else
- grp.gr_mem = NULL;
+ grp.gr_mem = (char **) calloc (1, sizeof (char *));
return 1;
}
}