aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-10-09 07:22:59 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-10-09 07:22:59 +0000
commit586d86cc8ce2847c598bd8a211ff770fb50bac3a (patch)
treedf088b6b094520b585eba41fd5f0143790910de1 /editors
parent9d1a33c6904846b0518d3b260900784aa3c5c754 (diff)
downloadbusybox-586d86cc8ce2847c598bd8a211ff770fb50bac3a.tar.gz
Comaptability with gcc-2.95
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index adf79d4d6..2c2148e5f 100644
--- 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;