diff --git a/editors/vi.c b/editors/vi.c index 5c601c759..a4b958734 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -2684,7 +2684,7 @@ static char *expand_args(char *args) static char *strchr_backslash(const char *s, int c) { while (*s) { - if (*s == c) { + if (*s == c) return (char *)s; if (*s == '\\') if (*++s == '\0')