aboutsummaryrefslogtreecommitdiffstats
path: root/src/day.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/day.c')
-rwxr-xr-xsrc/day.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/day.c b/src/day.c
index 8de0a94..6df66e4 100755
--- a/src/day.c
+++ b/src/day.c
@@ -1,4 +1,4 @@
-/* $calcurse: day.c,v 1.45 2009/01/01 17:50:41 culot Exp $ */
+/* $calcurse: day.c,v 1.46 2009/01/02 19:52:32 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -62,14 +62,14 @@ day_free_list (void)
struct day_item_s *o, **i;
i = &day_items_ptr;
- for (o = day_items_ptr; o; o = o->next)
+ while (*i)
{
+ o = *i;
*i = o->next;
mem_free (o->mesg);
if (o->note)
mem_free (o->note);
mem_free (o);
- i = &(*i)->next;
}
day_items_ptr = NULL;
}