diff options
author | Frederic Culot <calcurse@culot.org> | 2009-01-02 19:52:32 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2009-01-02 19:52:32 +0000 |
commit | aa7d6c5eb75d236a6a58b4df8c98335fd0ac24dd (patch) | |
tree | 99f53002ba1c7d7f828761974d5b8f681ee867e2 /src/day.c | |
parent | cac30a7e1469a8f061f64712dbea100a012dd788 (diff) | |
download | calcurse-aa7d6c5eb75d236a6a58b4df8c98335fd0ac24dd.zip |
various bugfixes
Diffstat (limited to 'src/day.c')
-rwxr-xr-x | src/day.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |