diff src/ex_cmds.c @ 770:f30c8ac7741c v7.0225

updated for version 7.0225
author vimboss
date Wed, 15 Mar 2006 23:07:59 +0000
parents 8a6982d59d8e
children 4a79d6d376f0
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -1813,12 +1813,9 @@ write_viminfo(file, forceit)
 	{
 #ifdef VMS
 	    /* fdopen() fails for some reason */
-	    if (fp_out == NULL)
-	    {
-		umask_save = umask(077);
-		fp_out = mch_fopen((char *)tempname, WRITEBIN);
-		(void)umask(umask_save);
-	    }
+	    umask_save = umask(077);
+	    fp_out = mch_fopen((char *)tempname, WRITEBIN);
+	    (void)umask(umask_save);
 #else
 	    int	fd;