Refator return logic in ses_put_fname()

This commit is contained in:
Felipe Oliveira Carvalho
2014-06-05 23:20:02 -03:00
parent 238fa72884
commit f099809e67

View File

@@ -8554,13 +8554,9 @@ static int ses_put_fname(FILE *fd, char_u *name, unsigned *flagp)
free(sname);
/* write the result */
if (fputs((char *)p, fd) < 0) {
free(p);
return FAIL;
}
bool retval = fputs((char *)p, fd) < 0 ? FAIL : OK;
free(p);
return OK;
return retval;
}
/*