zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: bad variable declarations
@ 2011-05-09 10:23 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2011-05-09 10:23 UTC (permalink / raw)
  To: Zsh hackers list

One sign the shell isn't getting compiled widely enough.

Index: Src/text.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/text.c,v
retrieving revision 1.27
diff -p -u -r1.27 text.c
--- Src/text.c	6 Jan 2011 20:28:50 -0000	1.27
+++ Src/text.c	9 May 2011 10:22:59 -0000
@@ -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';

-- 
Peter Stephenson <pws@csr.com>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-09 10:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-09 10:23 PATCH: bad variable declarations Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).