summaryrefslogtreecommitdiffstats
path: root/src/findfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/findfile.c')
-rw-r--r--src/findfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/findfile.c b/src/findfile.c
index 4f457b9386..ab59776978 100644
--- a/src/findfile.c
+++ b/src/findfile.c
@@ -2653,7 +2653,7 @@ simplify_filename(char_u *filename)
p = filename;
# ifdef BACKSLASH_IN_FILENAME
- if (p[1] == ':') // skip "x:"
+ if (p[0] != NUL && p[1] == ':') // skip "x:"
p += 2;
# endif