summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai2002-01-03 21:19:19 +0000
committerMatt Kraai2002-01-03 21:19:19 +0000
commit9eaf059d283146ca7eb41e509b5ac370591d77da (patch)
treef2975b7bbb4ed096902bf7da58c2ced3943bb85a
parent5ed78adca590ba9991c55b71f0a9b7f1b31e7934 (diff)
downloadbusybox-9eaf059d283146ca7eb41e509b5ac370591d77da.zip
busybox-9eaf059d283146ca7eb41e509b5ac370591d77da.tar.gz
* editors/sed.c (parse_cmd_str): Remove redundant code to skip initial
whitespace.
-rw-r--r--editors/sed.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/editors/sed.c b/editors/sed.c
index e766b3c..31b9de0 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);