]> git.wh0rd.org Git - nano.git/commitdiff
put back erroneously removed initialization of original_umask
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 6 Jul 2004 14:02:44 +0000 (14:02 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 6 Jul 2004 14:02:44 +0000 (14:02 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1843 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/files.c

index 90db1d30ede75469ecf341296b591cd8f576d4d6..3610f0d031f675c6c7d03220deeeedeaf4ce5b1d 100644 (file)
@@ -1392,7 +1392,7 @@ int write_file(const char *name, int tmp, int append, int nonamechange)
     size_t lineswritten = 0;
     const filestruct *fileptr = fileage;
     int fd;
-    mode_t original_umask;
+    mode_t original_umask = 0;
        /* Our umask, from when nano started. */
     int realexists;
        /* The result of stat().  TRUE if the file exists, FALSE