diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/compmatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |