* PATCH: small fix for...
@ 1999-03-05 15:57 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 1999-03-05 15:57 UTC (permalink / raw)
To: zsh-workers
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@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-03-05 16:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-05 15:57 PATCH: small fix for Sven Wischnowsky
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).