mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-08 10:42:00 +03:00
cut: avoid calling renumber() on what might be NULL
This fixes https://savannah.gnu.org/bugs/?53317. Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
This commit is contained in:
parent
e8505b2d3e
commit
f0734dae3e
@ -357,8 +357,8 @@ void extract_buffer(filestruct **file_top, filestruct **file_bot,
|
||||
|
||||
delete_node(openfile->fileage);
|
||||
|
||||
/* Renumber, starting with the line after the original file_bot. */
|
||||
renumber(file_bot_save->next);
|
||||
/* Renumber, starting at the last line of the original buffer. */
|
||||
renumber(file_bot_save);
|
||||
}
|
||||
|
||||
/* Since the text has now been saved, remove it from the buffer. */
|
||||
|
Loading…
Reference in New Issue
Block a user