add one last breakage fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2838 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
76c25f582a
commit
be5cdb2748
|
@ -167,9 +167,10 @@ void open_buffer(const char *filename)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* If the filename isn't blank, open the file. */
|
||||
if (filename[0] != '\0')
|
||||
rc = open_file(filename, new_buffer, &f);
|
||||
/* If the filename isn't blank, open the file. Otherwise, treat it
|
||||
* as a new file. */
|
||||
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 (new_buffer)
|
||||
|
|
Loading…
Reference in New Issue