hush: small speed optimization. +10 bytes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2f7894b1bb
commit
7188540257
@ -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. */
|
/* Replace each \x with x in place, return ptr past NUL. */
|
||||||
static char *unbackslash(char *src)
|
static char *unbackslash(char *src)
|
||||||
{
|
{
|
||||||
char *dst = src;
|
char *dst = src = strchrnul(src, '\\');
|
||||||
while (1) {
|
while (1) {
|
||||||
if (*src == '\\')
|
if (*src == '\\')
|
||||||
src++;
|
src++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user