Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: core dump with case.
- X-seq: zsh-workers 7712
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: core dump with case.
- Date: Wed, 8 Sep 1999 09:48:34 +0200 (MET DST)
- In-reply-to: Tanaka Akira's message of 08 Sep 1999 03:23:03 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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