[git commit] vi: fix regex search compilation error

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Jul 13 16:23:43 UTC 2021


commit: https://git.busybox.net/busybox/commit/?id=e6f4145f2961bfd500214ef1fcf07543ffacb603
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Building with FEATURE_VI_REGEX_SEARCH enabled fails.

Signed-off-by: Ron Yorston <rmy at pobox.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 editors/vi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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')


More information about the busybox-cvs mailing list