From: Denys Vlasenko Date: Wed, 23 Sep 2009 23:44:13 +0000 (+0200) Subject: hush: small speed optimization. +10 bytes. X-Git-Tag: 1_16_0~459 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=718854025735db26a0dda9e6acfe785d2004b3bc;p=oweals%2Fbusybox.git hush: small speed optimization. +10 bytes. Signed-off-by: Denys Vlasenko --- 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++;