diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-03 21:54:58 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-03 22:09:00 +0200 |
commit | 5b12c236cf68a182fb8075c7ec0797c4c64fd60c (patch) | |
tree | 26d6b771bf4e764b9beb3ac056acad89f28200b0 /src/todo.c | |
parent | 1473145d10a0ba529526897c08eab2fb176dac01 (diff) | |
download | calcurse-5b12c236cf68a182fb8075c7ec0797c4c64fd60c.zip |
Remove dead assignments spotted by clang-analyzer.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/todo.c')
-rw-r--r-- | src/todo.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -198,10 +198,9 @@ static void todo_delete_note_bynum (unsigned num) { unsigned n; - struct todo *i, **iptr; + struct todo *i; n = 0; - iptr = &todolist; for (i = todolist; i != 0; i = i->next) { if (n == num) @@ -211,7 +210,6 @@ todo_delete_note_bynum (unsigned num) erase_note (&i->note, ERASE_FORCE_ONLY_NOTE); return; } - iptr = &i->next; n++; } /* NOTREACHED */ |