mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
:recover : Fix crash on non-existent *.swp #9504
Reverts d2944e6a29
. mf_open() _can_ fail if the file does not exist.
closes #9503
closes #9504
This commit is contained in:
@@ -76,7 +76,8 @@
|
||||
|
||||
/// @param flags Flags for open() call.
|
||||
///
|
||||
/// @return The open memory file.
|
||||
/// @return - The open memory file, on success.
|
||||
/// - NULL, on failure (e.g. file does not exist).
|
||||
memfile_T *mf_open(char_u *fname, int flags)
|
||||
{
|
||||
memfile_T *mfp = xmalloc(sizeof(memfile_T));
|
||||
|
Reference in New Issue
Block a user