summaryrefslogtreecommitdiff
path: root/group.c
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-07-13 15:09:01 -0700
committerlouie <lshprung@yahoo.com>2020-07-13 15:09:01 -0700
commit40a6bba7765b661303ed0e1e6f6f7319e344ce08 (patch)
treed5e99caeb36c6bb9300a43efd1a11201534499ea /group.c
parent2d08a7dbceac846f54cba6b0b75b0de1542df707 (diff)
Fixed entry deletion, added addR option
Diffstat (limited to 'group.c')
-rw-r--r--group.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/group.c b/group.c
index e1ca5a1..7697e96 100644
--- a/group.c
+++ b/group.c
@@ -113,14 +113,9 @@ void group_add(char *gname, ENTRY *addme){
}
void group_rm(GROUP *g){
- ENTRY **e = get_entries(g->head, g->entry_count);
- int i;
- for(i = 0; i < g->entry_count; i++){
- entry_rm(e[i]);
- }
+ clear_entries(g->head);
- free(e);
free(g);
group_count--;
return;