From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: Re: long/short options
Date: Wed, 18 Jul 2001 15:51:09 +0200 (MET DST) [thread overview]
Message-ID: <200107181351.PAA07644@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <000001c10f90$0877a2d0$21c9ca95@mow.siemens.ru>
Andrej Borsenkow wrote:
> bor@itsrm2% zsh
> bor@itsrm2% gdiff -bTAB
> zsh: bus error (core dumped) zsh
Ouch. Sets without matches are possible.
Sorry. Thanks.
Bye
Sven
Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.63
diff -u -r1.63 computil.c
--- Src/Zle/computil.c 2001/07/18 13:10:10 1.63
+++ Src/Zle/computil.c 2001/07/18 13:50:04
@@ -213,7 +213,7 @@
freecdsets(cd_state.sets);
return 1;
}
- for (strp = &(set->strs); *ap; ap++) {
+ for (str = NULL, strp = &(set->strs); *ap; ap++) {
*strp = str = (Cdstr) zalloc(sizeof(*str));
strp = &(str->next);
@@ -231,7 +231,8 @@
*tmp = '\0';
str->str = str->match = ztrdup(rembslash(*ap));
}
- str->next = NULL;
+ if (str)
+ str->next = NULL;
if (*++args && **args != '-') {
if (!(ap = get_user_var(*args))) {
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next prev parent reply other threads:[~2001-07-18 13:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-12 16:01 Andrej Borsenkow
2001-07-13 8:07 ` Sven Wischnowsky
2001-07-13 17:01 ` Bart Schaefer
2001-07-16 7:14 ` Sven Wischnowsky
2001-07-18 13:07 ` PATCH: " Sven Wischnowsky
2001-07-18 13:46 ` Andrej Borsenkow
2001-07-18 13:51 ` Sven Wischnowsky [this message]
2001-07-18 13:59 ` Andrej Borsenkow
2001-07-18 17:20 ` Oliver Kiddle
2001-07-19 8:36 ` Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200107181351.PAA07644@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).