diff options
-rw-r--r-- | builtin-config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-config.c b/builtin-config.c index 4c9ded3b1a..6175dc3738 100644 --- a/builtin-config.c +++ b/builtin-config.c @@ -38,8 +38,7 @@ static int show_config(const char* key_, const char* value_) if (use_key_regexp && regexec(key_regexp, key_, 0, NULL, 0)) return 0; if (regexp != NULL && - (do_not_match ^ - regexec(regexp, (value_?value_:""), 0, NULL, 0))) + (do_not_match ^ !!regexec(regexp, (value_?value_:""), 0, NULL, 0))) return 0; if (show_keys) { |