Commit f0734dae authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

cut: avoid calling renumber() on what might be NULL

This fixes https://savannah.gnu.org/bugs/?53317

.
Reported-by: default avatarDavid Lawrence Ramsey <pooka109@gmail.com>
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -357,8 +357,8 @@ void extract_buffer(filestruct **file_top, filestruct **file_bot, ...@@ -357,8 +357,8 @@ void extract_buffer(filestruct **file_top, filestruct **file_bot,
delete_node(openfile->fileage); delete_node(openfile->fileage);
/* Renumber, starting with the line after the original file_bot. */ /* Renumber, starting at the last line of the original buffer. */
renumber(file_bot_save->next); renumber(file_bot_save);
} }
/* Since the text has now been saved, remove it from the buffer. */ /* Since the text has now been saved, remove it from the buffer. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment