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

Re: core dump with case.



Tanaka Akira wrote:

> zsh dumps core with follows:
> 
> Z(2):akr@is27e1u11% Src/zsh -f
> is27e1u11% f () { case a in; esac }
> is27e1u11% f
> zsh: segmentation fault (core dumped)  Src/zsh -f
> Z(2):akr@is27e1u11% 

My fault.

Bye
 Sven

--- os/text.c	Tue Sep  7 13:15:40 1999
+++ Src/text.c	Wed Sep  8 09:47:11 1999
@@ -308,7 +308,7 @@
 	    taddstr(*p++);
 	    taddstr(" in");
 	    tindent++;
-	    for (; *l; p++, l++) {
+	    for (; l && *l; p++, l++) {
 		if (tnewlins)
 		    taddnl();
 		else

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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