diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/compmatch.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index dfb812760..9bef1cfeb 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -120,7 +120,7 @@ add_bmatchers(Cmatcher m) mod_export void update_bmatchers(void) { - Cmlist p = bmatchers, q = NULL, ms; + Cmlist p = bmatchers, ms; Cmatcher mp; int t; @@ -132,10 +132,7 @@ update_bmatchers(void) p = p->next; if (!t) { - if (q) - q->next = p; - else - bmatchers = p; + bmatchers = p; } } } |