aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memfile.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-05-17 08:16:58 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-05-17 09:03:44 +0200
commitd2944e6a298e824e5084ac0dfd8701ff9cd1a523 (patch)
tree9b38b0944d078da2b0fa30f2bfe70d6c5233e89b /src/nvim/memfile.c
parentc2d1684e05f62e66e4820c6f86b80f5c9187365f (diff)
downloadrneovim-d2944e6a298e824e5084ac0dfd8701ff9cd1a523.tar.gz
rneovim-d2944e6a298e824e5084ac0dfd8701ff9cd1a523.tar.bz2
rneovim-d2944e6a298e824e5084ac0dfd8701ff9cd1a523.zip
mf_open(): never fails (except for OOM)
Diffstat (limited to 'src/nvim/memfile.c')
-rw-r--r--src/nvim/memfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/memfile.c b/src/nvim/memfile.c
index f6e03e2532..fe4d24ba11 100644
--- a/src/nvim/memfile.c
+++ b/src/nvim/memfile.c
@@ -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));