aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/fileio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index 58e4873e00..c9e11d8fb5 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -418,7 +418,6 @@ readfile (
* If the name is too long we might crash further on, quit here.
*/
if (fname != NULL && *fname != NUL) {
- p = fname + STRLEN(fname);
if (STRLEN(fname) >= MAXPATHL) {
filemess(curbuf, fname, (char_u *)_("Illegal file name"), 0);
msg_end();