aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-01-02 15:27:16 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-01-02 15:27:16 +0100
commit31bfca25a81b62e75398148c800dfb2ac6ed4903 (patch)
treeefaef0ea56574490b4978a1d8b543d8f4e3adab1
parente208b98cb5bee6b79ca76fdfaf38128434bdf965 (diff)
downloaddrminfo-31bfca25a81b62e75398148c800dfb2ac6ed4903.tar.gz
fix strcmp
-rw-r--r--complete.c2
1 files changed, 1 insertions, 1 deletions
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 */