aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-07-11 11:11:56 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-07-11 11:11:56 +0000
commit9e8681df83a66124e2857d52595b0a99febadee5 (patch)
treeb516e1554a434ba539ed5318c0b3736940c1dd99 /editors/sed.c
parent5891772708c56a5c2e4da0c5ed7128c2e08196f2 (diff)
downloadbusybox-w32-9e8681df83a66124e2857d52595b0a99febadee5.tar.gz
busybox-w32-9e8681df83a66124e2857d52595b0a99febadee5.tar.bz2
busybox-w32-9e8681df83a66124e2857d52595b0a99febadee5.zip
Fixup warnings and undefined operations that show up in gcc-3.1
-Erik git-svn-id: svn://busybox.net/trunk/busybox@5042 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 93faf00c2..84aea9b0a 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -401,8 +401,10 @@ static char *parse_cmd_str(struct sed_cmd * const sed_cmd, const char *const cmd
401 idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match); 401 idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match);
402 402
403 /* second part (if present) will begin with a comma */ 403 /* second part (if present) will begin with a comma */
404 if (cmdstr[idx] == ',') 404 if (cmdstr[idx] == ',') {
405 idx += get_address(sed_cmd, &cmdstr[++idx], &sed_cmd->end_line, &sed_cmd->end_match); 405 idx++;
406 idx += get_address(sed_cmd, &cmdstr[idx], &sed_cmd->end_line, &sed_cmd->end_match);
407 }
406 408
407 /* skip whitespace before the command */ 409 /* skip whitespace before the command */
408 while (isspace(cmdstr[idx])) 410 while (isspace(cmdstr[idx]))