zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: possible NULL dereference in bld_parts
@ 2008-10-12 19:24 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-10-12 19:24 UTC (permalink / raw)
  To: zsh-workers

CID 26.

Index: Src/Zle/compmatch.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compmatch.c,v
retrieving revision 1.58
diff -u -r1.58 compmatch.c
--- Src/Zle/compmatch.c	10 Sep 2008 18:33:32 -0000	1.58
+++ Src/Zle/compmatch.c	12 Oct 2008 19:21:52 -0000
@@ -1553,7 +1553,8 @@
 	*lprem = NULL;
     }
 
-    n->next = NULL;
+    if (n)
+        n->next = NULL;
 
     if (lp)
 	*lp = n;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-12 19:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-12 19:24 PATCH: possible NULL dereference in bld_parts Clint Adams

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).