diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-08-17 21:50:40 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-08-17 21:50:40 +0400 |
commit | 981f9625f313573ed6560d992baa57b1fdac0d57 (patch) | |
tree | 140fcb76f944b8ec739ca909de17555f63bfe5fa /winsup/cygwin/grp.cc | |
parent | 919497ee6bde1f6c1e8b1504b7dc7131779e8ce4 (diff) |
* 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.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc index 5b93ec74d..c83c1e55f 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"); |