summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley2004-01-04 06:42:14 +0000
committerRob Landley2004-01-04 06:42:14 +0000
commit40ec4aeb8e26199a076627060a888c80146ab753 (patch)
treeecd830afd17d7b8306f78b04e8c1294f30ff5809
parent3b251857334fc3b7ae075905908d67a08885da76 (diff)
downloadbusybox-40ec4aeb8e26199a076627060a888c80146ab753.zip
busybox-40ec4aeb8e26199a076627060a888c80146ab753.tar.gz
Thinko in s//options. (Whitespace skipping in the wrong place.)
-rw-r--r--editors/sed.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 5f58fe2..a0d0cf7 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -344,10 +344,11 @@ static int parse_subst_cmd(sed_cmd_t * const sed_cmd, char *substr)
sed_cmd->which_match=(unsigned short)strtol(substr+idx,&pos,10);
idx=pos-substr;
}
- /* Skip spaces */
- if(isspace(substr[idx])) continue;
continue;
}
+ /* Skip spaces */
+ if(isspace(substr[idx])) continue;
+
switch (substr[idx]) {
/* Replace all occurrences */
case 'g':