From: Chris Allegretta Date: Sun, 26 Jan 2014 04:09:04 +0000 (+0000) Subject: 2014-01-25 Chris Allegretta X-Git-Tag: v2.3.3~346 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d2f29d0243399b6deda001033df306b740712484;p=nano.git 2014-01-25 Chris Allegretta * src/winio.c (set_modified) - Check for a filename before we bother trying to lock git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4584 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 81105fcb..84b8295a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-01-25 Chris Allegretta + * src/winio.c (set_modified) - Check for a filename before we bother trying to lock + 2014-01-01 Chris Allegretta * doc/texinfo/nano.texi - Change '@sp4' since makeinfo 5.1 hates the lack of spacing. Fixes Savannah bug 40103 repored by flapane@Savannah. diff --git a/src/winio.c b/src/winio.c index b032c050..46f62ff6 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2260,7 +2260,9 @@ void set_modified(void) titlebar(NULL); #ifndef NANO_TINY if (ISSET(LOCKING)) { - if (openfile->lock_filename == NULL) { + if (!strcmp(openfile->filename, "")) + return; + else if (openfile->lock_filename == NULL) { /* Translators: Try to keep this at most 80 characters. */ statusbar(_("Warning: Modifying a file which is not locked, check directory permission?")); } else {