mf_open(): never fails (except for OOM)

This commit is contained in:
Justin M. Keyes
2018-05-17 08:16:58 +02:00
parent c2d1684e05
commit d2944e6a29
3 changed files with 8 additions and 15 deletions

View File

@@ -76,8 +76,7 @@
/// @param flags Flags for open() call.
///
/// @return - The open memory file, on success.
/// - NULL, on failure.
/// @return The open memory file.
memfile_T *mf_open(char_u *fname, int flags)
{
memfile_T *mfp = xmalloc(sizeof(memfile_T));