Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: small fix for...
- X-seq: zsh-workers 5666
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: small fix for...
- Date: Fri, 5 Mar 1999 16:57:41 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Discovered this while trying to make `_configure' work for
me... `inststrlen()' may be called with a NULL string.
Bye
Sven
diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c Fri Mar 5 14:50:29 1999
+++ Src/Zle/zle_tricky.c Fri Mar 5 16:52:53 1999
@@ -3903,7 +3903,7 @@
static void
inststrlen(char *str, int move, int len)
{
- if (!len)
+ if (!len || !str)
return;
if (len == -1)
len = strlen(str);
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author