This commit is contained in:
Justin M. Keyes
2019-05-25 11:13:18 +02:00
parent c4f56c4134
commit 51a59a0f62
8 changed files with 17 additions and 15 deletions

View File

@@ -3340,9 +3340,10 @@ static char *findswapname(buf_T *buf, char **dirp, char *old_fname,
(char_u *)dir_name);
for (;; ) {
if (fname == NULL) /* must be out of memory */
if (fname == NULL) { // must be out of memory
break;
if ((n = strlen(fname)) == 0) { /* safety check */
}
if ((n = strlen(fname)) == 0) { // safety check
XFREE_CLEAR(fname);
break;
}