zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: dead code in ca_parse_line
@ 2008-09-23 20:55 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-09-23 20:55 UTC (permalink / raw)
  To: zsh-workers

This appears to be the equivalent of #if 0

Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.108
diff -u -r1.108 computil.c
--- Src/Zle/computil.c	14 Sep 2008 07:34:47 -0000	1.108
+++ Src/Zle/computil.c	23 Sep 2008 20:51:16 -0000
@@ -1874,13 +1874,10 @@
 
     if (first && ca_alloced) {
 	Castate s = &ca_laststate, ss;
-	int f = 1;
 
 	while (s) {
 	    ss = s->snext;
 	    freecastate(s);
-	    if (!f)
-		zfree(s, sizeof(*s));
 	    s = ss;
 	}
     }


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

only message in thread, other threads:[~2008-09-23 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-23 20:55 PATCH: dead code in ca_parse_line Clint Adams

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).