From: Glenn L McGrath Date: Thu, 9 Oct 2003 07:22:59 +0000 (-0000) Subject: Comaptability with gcc-2.95 X-Git-Tag: 1_00_pre4~138 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=586d86cc8ce2847c598bd8a211ff770fb50bac3a;p=oweals%2Fbusybox.git Comaptability with gcc-2.95 --- 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;