From 430e54ddc496b2610ef4ee263f557953cf057db2 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 12 Oct 2008 19:28:10 +0000 Subject: 25860: avoid possible NULL dereferencing in bld_parts. --- Src/Zle/compmatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index 836dcdd45..f92caa7bf 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -1553,7 +1553,8 @@ bld_parts(char *str, int len, int plen, Cline *lp, Cline *lprem) *lprem = NULL; } - n->next = NULL; + if (n) + n->next = NULL; if (lp) *lp = n; -- cgit 1.4.1