From: Matt Kraai Date: Thu, 3 Jan 2002 21:19:19 +0000 (-0000) Subject: * editors/sed.c (parse_cmd_str): Remove redundant code to skip initial X-Git-Tag: 0_60_3~127 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9eaf059d283146ca7eb41e509b5ac370591d77da;p=oweals%2Fbusybox.git * editors/sed.c (parse_cmd_str): Remove redundant code to skip initial whitespace. --- diff --git a/editors/sed.c b/editors/sed.c index e766b3c2f..31b9de055 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -393,10 +393,6 @@ static char *parse_cmd_str(struct sed_cmd * const sed_cmd, const char *const cmd * part1 part2 part3 */ - /* skip initial whitespace */ - while (isspace(cmdstr[idx])) - idx++; - /* first part (if present) is an address: either a number or a /regex/ */ if (isdigit(cmdstr[idx]) || cmdstr[idx] == '/') idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match);