aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-01-03 21:19:19 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-01-03 21:19:19 +0000
commite63bc51d2e28e66d06e2b74bb17701dfde235911 (patch)
treef2975b7bbb4ed096902bf7da58c2ced3943bb85a
parent976c5a1a393382c6cc8db41168c27631a8366269 (diff)
downloadbusybox-w32-e63bc51d2e28e66d06e2b74bb17701dfde235911.tar.gz
busybox-w32-e63bc51d2e28e66d06e2b74bb17701dfde235911.tar.bz2
busybox-w32-e63bc51d2e28e66d06e2b74bb17701dfde235911.zip
* editors/sed.c (parse_cmd_str): Remove redundant code to skip initial
whitespace. git-svn-id: svn://busybox.net/trunk/busybox@4011 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--editors/sed.c4
1 files changed, 0 insertions, 4 deletions
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
393 * part1 part2 part3 393 * part1 part2 part3
394 */ 394 */
395 395
396 /* skip initial whitespace */
397 while (isspace(cmdstr[idx]))
398 idx++;
399
400 /* first part (if present) is an address: either a number or a /regex/ */ 396 /* first part (if present) is an address: either a number or a /regex/ */
401 if (isdigit(cmdstr[idx]) || cmdstr[idx] == '/') 397 if (isdigit(cmdstr[idx]) || cmdstr[idx] == '/')
402 idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match); 398 idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match);