From: David Lawrence Ramsey Date: Thu, 31 Mar 2005 05:26:06 +0000 (+0000) Subject: add missing blank line X-Git-Tag: v1.3.7~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=894d80fc5d26b2d27da1806b9c37646d5abd8401;p=nano.git add missing blank line git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2445 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/files.c b/src/files.c index ae1e314b..e44dcad3 100644 --- a/src/files.c +++ b/src/files.c @@ -1339,6 +1339,7 @@ int write_file(const char *name, bool tmp, int append, bool /* The temp file name we write to on prepend. */ assert(name != NULL); + if (name[0] == '\0') return -1; if (!tmp)