From ae4a0ab46cbd2c6db916b702f05436b492a72d4d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 9 May 2011 10:27:32 +0000 Subject: 29193: badly placed variable declaration --- Src/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/text.c') diff --git a/Src/text.c b/Src/text.c index 749b5d3dc..669037a2d 100644 --- a/Src/text.c +++ b/Src/text.c @@ -893,13 +893,13 @@ getredirs(LinkList redirs) taddstr(f->here_terminator); taddpending(f->name, f->munged_here_terminator); } else { + int fnamelen, sav; taddstr(fstr[REDIR_HERESTR]); /* * Just a quick and dirty representation. * Remove a terminating newline, if any. */ - int fnamelen = strlen(f->name); - int sav; + fnamelen = strlen(f->name); if (fnamelen > 0 && f->name[fnamelen-1] == '\n') { sav = 1; f->name[fnamelen-1] = '\0'; -- cgit 1.4.1