nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit d994af033496d75589729664d28a6592fccf7251
parent 75c7c35cfd39d3989a394c519cb12fc2052c0909
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 14 Jul 2018 20:02:03 +0200

tweaks: avoid dereferencing a pointer when it is NULL  [coverity scan]

Diffstat:
Msrc/text.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/text.c b/src/text.c @@ -862,7 +862,7 @@ void do_redo(void) while (u != NULL && u->next != openfile->current_undo) u = u->next; - if (u->next != openfile->current_undo) { + if (u == NULL) { statusline(ALERT, "Bad undo stack -- please report a bug"); return; }