Commit 68010d93 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

startup: don't crash when dying early

That is: don't try to look at open files when none are open yet.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -605,7 +605,7 @@ void die(const char *msg, ...)
#ifndef NANO_TINY
/* If the current buffer has a lockfile, remove it. */
if (ISSET(LOCKING) && openfile->lock_filename)
if (openfile && ISSET(LOCKING) && openfile->lock_filename)
delete_lockfile(openfile->lock_filename);
#endif
......
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