mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
Refator return logic in ses_put_fname()
This commit is contained in:
@@ -8554,13 +8554,9 @@ static int ses_put_fname(FILE *fd, char_u *name, unsigned *flagp)
|
|||||||
free(sname);
|
free(sname);
|
||||||
|
|
||||||
/* write the result */
|
/* write the result */
|
||||||
if (fputs((char *)p, fd) < 0) {
|
bool retval = fputs((char *)p, fd) < 0 ? FAIL : OK;
|
||||||
free(p);
|
|
||||||
return FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
free(p);
|
free(p);
|
||||||
return OK;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user