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:
9d1a33c
)
Comaptability with gcc-2.95
author
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 9 Oct 2003 07:22:59 +0000
(07:22 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 9 Oct 2003 07:22:59 +0000
(07:22 -0000)
editors/sed.c
patch
|
blob
|
history
diff --git
a/editors/sed.c
b/editors/sed.c
index adf79d4d67f691ea904765f277ca63511eff886f..2c2148e5f282efdebecb37b4fd54f7fcf40d89bd 100644
(file)
--- a/
editors/sed.c
+++ b/
editors/sed.c
@@
-457,6
+457,7
@@
void add_cmd(char *cmdstr)
{
static char *add_cmd_line=NULL;
sed_cmd_t *sed_cmd;
+ int temp;
/* Append this line to any unfinished line from last time. */
if(add_cmd_line) {
@@
-471,7
+472,7
@@
void add_cmd(char *cmdstr)
} else add_cmd_line=NULL;
/* If this line ends with backslash, request next line. */
-
int
temp=strlen(cmdstr);
+ temp=strlen(cmdstr);
if(temp && cmdstr[temp-1]=='\\') {
if(!add_cmd_line) add_cmd_line=strdup(cmdstr);
add_cmd_line[temp-1]=0;