diff options
author | Frederic Culot <calcurse@culot.org> | 2009-07-19 08:19:37 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2009-07-19 08:19:37 +0000 |
commit | 5dcc213c164a1f25cad4bd76617dc780f5e1dc6f (patch) | |
tree | 655127ff74d3a72bacf6bde1a4cb0f7f9733c9fc /src/todo.c | |
parent | a4da35c65f77113f998cd60d8a1a10d108138951 (diff) | |
download | calcurse-5dcc213c164a1f25cad4bd76617dc780f5e1dc6f.zip |
Make use of erase_note() whenever possible.
Diffstat (limited to 'src/todo.c')
-rwxr-xr-x | src/todo.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) |