summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c
index 32e97c99b..b5f3a9a86 100644
--- a/src/option.c
+++ b/src/option.c
@@ -7017,7 +7017,7 @@ did_set_string_option(
/* skip optional filename after 'k' and 's' */
while (*s && *s != ',' && *s != ' ')
{
- if (*s == '\\')
+ if (*s == '\\' && s[1] != NUL)
++s;
++s;
}