qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs qe.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs qe.c
Date: Wed, 16 Sep 2015 21:42:19 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        15/09/16 21:42:19

Modified files:
        .              : qe.c 

Log message:
        fixed do_set_visited_file_name if no file associated

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/qe.c?cvsroot=qemacs&r1=1.214&r2=1.215

Patches:
Index: qe.c
===================================================================
RCS file: /sources/qemacs/qemacs/qe.c,v
retrieving revision 1.214
retrieving revision 1.215
diff -u -b -r1.214 -r1.215
--- qe.c        16 Sep 2015 12:40:58 -0000      1.214
+++ qe.c        16 Sep 2015 21:42:18 -0000      1.215
@@ -6502,7 +6502,7 @@
     char path[MAX_FILENAME_SIZE];
 
     canonicalize_absolute_path(path, sizeof(path), filename);
-    if (*renamefile == 'y' && s->b->filename) {
+    if (*renamefile == 'y' && *s->b->filename) {
         if (rename(s->b->filename, path))
             put_status(s, "Cannot rename file to %s", path);
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]