aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/grp.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-08-17 17:50:40 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-08-17 17:50:40 +0000
commit981f9625f313573ed6560d992baa57b1fdac0d57 (patch)
tree140fcb76f944b8ec739ca909de17555f63bfe5fa /winsup/cygwin/grp.cc
parent919497ee6bde1f6c1e8b1504b7dc7131779e8ce4 (diff)
downloadnewlib-981f9625f313573ed6560d992baa57b1fdac0d57.zip
newlib-981f9625f313573ed6560d992baa57b1fdac0d57.tar.gz
newlib-981f9625f313573ed6560d992baa57b1fdac0d57.tar.bz2
* grp.cc (read_group): Revert previous change.
* uinfo.cc (pwdgrp::load): Always reset curr_lines.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r--winsup/cygwin/grp.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc
index 5b93ec7..c83c1e5 100644
--- a/winsup/cygwin/grp.cc
+++ b/winsup/cygwin/grp.cc
@@ -75,10 +75,7 @@ pwdgrp::read_group ()
{
for (int i = 0; i < gr.curr_lines; i++)
if ((*group_buf)[i].gr_mem != &null_ptr)
- {
- free ((*group_buf)[i].gr_mem);
- (*group_buf)[i].gr_mem = &null_ptr;
- }
+ free ((*group_buf)[i].gr_mem);
load ("/etc/group");