aboutsummaryrefslogtreecommitdiffstats
path: root/src/todo.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-07-19 08:19:37 +0000
committerFrederic Culot <calcurse@culot.org>2009-07-19 08:19:37 +0000
commit5dcc213c164a1f25cad4bd76617dc780f5e1dc6f (patch)
tree655127ff74d3a72bacf6bde1a4cb0f7f9733c9fc /src/todo.c
parenta4da35c65f77113f998cd60d8a1a10d108138951 (diff)
downloadcalcurse-5dcc213c164a1f25cad4bd76617dc780f5e1dc6f.tar.gz
calcurse-5dcc213c164a1f25cad4bd76617dc780f5e1dc6f.zip
Make use of erase_note() whenever possible.
Diffstat (limited to 'src/todo.c')
-rwxr-xr-xsrc/todo.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/todo.c b/src/todo.c
index b2dbd5e..3d5ff10 100755
--- a/src/todo.c
+++ b/src/todo.c
@@ -1,4 +1,4 @@
-/* $calcurse: todo.c,v 1.34 2009/07/12 16:22:01 culot Exp $ */
+/* $calcurse: todo.c,v 1.35 2009/07/19 08:20:01 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -240,8 +240,7 @@ todo_delete_bynum (unsigned num, erase_flag_e flag)
{
*iptr = i->next;
mem_free (i->mesg);
- if (i->note != NULL)
- erase_note (&i->note, flag);
+ erase_note (&i->note, flag);
mem_free (i);
return;
}
@@ -540,8 +539,7 @@ todo_free_list (void)
o = *i;
*i = o->next;
mem_free (o->mesg);
- if (o->note != 0)
- erase_note (&o->note, ERASE_FORCE_KEEP_NOTE);
+ erase_note (&o->note, ERASE_FORCE_KEEP_NOTE);
mem_free (o);
}
if (todolist)