From 5dcc213c164a1f25cad4bd76617dc780f5e1dc6f Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sun, 19 Jul 2009 08:19:37 +0000 Subject: Make use of erase_note() whenever possible. --- src/todo.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/todo.c') 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) -- cgit v1.2.3