Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: fix for zle -C
- X-seq: zsh-workers 5913
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: fix for zle -C
- Date: Wed, 24 Mar 1999 09:08:22 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
...it seg-faulted when given a name for which there is no widget (as
the second argument).
Bye
Sven
diff -u os/Zle/zle_thingy.c Src/Zle/zle_thingy.c
--- os/Zle/zle_thingy.c Tue Mar 23 11:57:07 1999
+++ Src/Zle/zle_thingy.c Wed Mar 24 09:04:51 1999
@@ -492,7 +492,7 @@
t = rthingy(args[1]);
cw = t->widget;
unrefthingy(t);
- if (!(cw->flags & ZLE_ISCOMP)) {
+ if (!cw || !(cw->flags & ZLE_ISCOMP)) {
zerrnam(name, "invalid widget `%s'", args[1], 0);
return 1;
}
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author