aboutsummaryrefslogtreecommitdiffstats
path: root/src/apoint.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-01-02 19:52:32 +0000
committerFrederic Culot <calcurse@culot.org>2009-01-02 19:52:32 +0000
commitaa7d6c5eb75d236a6a58b4df8c98335fd0ac24dd (patch)
tree99f53002ba1c7d7f828761974d5b8f681ee867e2 /src/apoint.c
parentcac30a7e1469a8f061f64712dbea100a012dd788 (diff)
downloadcalcurse-aa7d6c5eb75d236a6a58b4df8c98335fd0ac24dd.tar.gz
calcurse-aa7d6c5eb75d236a6a58b4df8c98335fd0ac24dd.zip
various bugfixes
Diffstat (limited to 'src/apoint.c')
-rwxr-xr-xsrc/apoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/apoint.c b/src/apoint.c
index 31bac44..eee97de 100755
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -1,4 +1,4 @@
-/* $calcurse: apoint.c,v 1.30 2009/01/01 17:50:41 culot Exp $ */
+/* $calcurse: apoint.c,v 1.31 2009/01/02 19:52:32 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -92,14 +92,14 @@ apoint_llist_free (void)
apoint_llist_node_t *o, **i;
i = &alist_p->root;
- for (o = alist_p->root; 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;
}
mem_free (alist_p);
}