From 586d86cc8ce2847c598bd8a211ff770fb50bac3a Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Thu, 9 Oct 2003 07:22:59 +0000 Subject: Comaptability with gcc-2.95 --- editors/sed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editors') diff --git a/editors/sed.c b/editors/sed.c index adf79d4..2c2148e 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; -- cgit v1.1