diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/compmatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index 74b2725eb..b99db2e6e 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -341,7 +341,7 @@ add_match_part(Cmatcher m, char *l, char *w, int wl, /* If the anchors are equal, we keep only one. */ - if (!strncmp(l, w, wl)) + if (l && !strncmp(l, w, wl)) l = NULL; /* Split the new part into parts and turn the last one into a |