tweaks: avoid dereferencing a pointer when it is NULL [coverity scan]
parent
75c7c35cfd
commit
d994af0334
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue