Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: dead code in ca_parse_line



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;
 	}
     }



Messages sorted by: Reverse Date, Date, Thread, Author