From 718854025735db26a0dda9e6acfe785d2004b3bc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 24 Sep 2009 01:44:13 +0200 Subject: [PATCH] hush: small speed optimization. +10 bytes. Signed-off-by: Denys Vlasenko --- shell/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/hush.c b/shell/hush.c index 85a45dd6b..866593f77 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -899,7 +899,7 @@ static int is_well_formed_var_name(const char *s, char terminator) /* Replace each \x with x in place, return ptr past NUL. */ static char *unbackslash(char *src) { - char *dst = src; + char *dst = src = strchrnul(src, '\\'); while (1) { if (*src == '\\') src++; -- 2.25.1