projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ed78ad
)
* editors/sed.c (parse_cmd_str): Remove redundant code to skip initial
author
Matt Kraai
<kraai@debian.org>
Thu, 3 Jan 2002 21:19:19 +0000
(21:19 -0000)
committer
Matt Kraai
<kraai@debian.org>
Thu, 3 Jan 2002 21:19:19 +0000
(21:19 -0000)
whitespace.
editors/sed.c
patch
|
blob
|
history
diff --git
a/editors/sed.c
b/editors/sed.c
index e766b3c2faa3f4e1214cd3830d4feda37e6aa777..31b9de0556046a954cab688db5891dc8aee97273 100644
(file)
--- 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);