diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-24 01:44:13 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-24 01:44:13 +0200 |
commit | 718854025735db26a0dda9e6acfe785d2004b3bc (patch) | |
tree | 33367fd8e693f63b9c908e8ec598d04a1a96c3f9 | |
parent | 2f7894b1bb60ab12b518fac5ea5928f3ec01de28 (diff) | |
download | busybox-w32-718854025735db26a0dda9e6acfe785d2004b3bc.tar.gz busybox-w32-718854025735db26a0dda9e6acfe785d2004b3bc.tar.bz2 busybox-w32-718854025735db26a0dda9e6acfe785d2004b3bc.zip |
hush: small speed optimization. +10 bytes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
899 | /* Replace each \x with x in place, return ptr past NUL. */ | 899 | /* Replace each \x with x in place, return ptr past NUL. */ |
900 | static char *unbackslash(char *src) | 900 | static char *unbackslash(char *src) |
901 | { | 901 | { |
902 | char *dst = src; | 902 | char *dst = src = strchrnul(src, '\\'); |
903 | while (1) { | 903 | while (1) { |
904 | if (*src == '\\') | 904 | if (*src == '\\') |
905 | src++; | 905 | src++; |