hush: small speed optimization. +10 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-09-24 01:44:13 +02:00
parent 2f7894b1bb
commit 7188540257

View File

@ -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++;