From 31bfca25a81b62e75398148c800dfb2ac6ed4903 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 2 Jan 2020 15:27:16 +0100 Subject: fix strcmp --- complete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complete.c b/complete.c index 4425b96..2e9d4a1 100644 --- a/complete.c +++ b/complete.c @@ -36,7 +36,7 @@ void complete_bash(const char *command, struct option *opts) for (i = 0; opts[i].name != NULL; i++) { /* hide completion options */ - if (strncmp(opts[i].name, "complete-", 9)) + if (strncmp(opts[i].name, "complete-", 9) == 0) continue; /* options with argument completion */ -- cgit