aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/fileio.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index c2f137b88e..98eeeeab05 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -2127,10 +2127,6 @@ static char_u *next_fenc(char_u **pp)
free(r);
r = p;
}
- if (r == NULL) { /* out of memory */
- r = (char_u *)"";
- *pp = NULL;
- }
return r;
}