Commit be5cdb27 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

add one last breakage fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2838 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 4 additions and 3 deletions
+4 -3
...@@ -167,9 +167,10 @@ void open_buffer(const char *filename) ...@@ -167,9 +167,10 @@ void open_buffer(const char *filename)
} }
#endif #endif
/* If the filename isn't blank, open the file. */ /* If the filename isn't blank, open the file. Otherwise, treat it
if (filename[0] != '\0') * as a new file. */
rc = open_file(filename, new_buffer, &f); rc = (filename[0] != '\0') ? open_file(filename, new_buffer, &f) :
-2;
/* If we're loading into a new buffer, add a new openfile entry. */ /* If we're loading into a new buffer, add a new openfile entry. */
if (new_buffer) if (new_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