comparison src/fileio.c @ 2028:be1d64f82db2 v7.2.325

updated for version 7.2-325
author vimboss
date Thu, 31 Dec 2009 13:53:33 +0000
parents 79b395ba0ea5
children 85da03763130
comparison
equal deleted inserted replaced
2027:4c41f0da2a2e 2028:be1d64f82db2
2979 backup or new file */ 2979 backup or new file */
2980 #endif 2980 #endif
2981 2981
2982 if (fname == NULL || *fname == NUL) /* safety check */ 2982 if (fname == NULL || *fname == NUL) /* safety check */
2983 return FAIL; 2983 return FAIL;
2984 if (buf->b_ml.ml_mfp == NULL)
2985 {
2986 /* This can happen during startup when there is a stray "w" in the
2987 * vimrc file. */
2988 EMSG(_(e_emptybuf));
2989 return FAIL;
2990 }
2984 2991
2985 /* 2992 /*
2986 * Disallow writing from .exrc and .vimrc in current directory for 2993 * Disallow writing from .exrc and .vimrc in current directory for
2987 * security reasons. 2994 * security reasons.
2988 */ 2995 */