tweaks: avoid dereferencing a pointer when it is NULL [coverity scan]
This commit is contained in:
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…
x
Reference in New Issue
Block a user