aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/trustdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index c113b7e9d..75714ab6e 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -1550,14 +1550,14 @@ check_regexp(const char *expr,const char *string)
{
ret=regexec(&pat,string,0,NULL,0);
regfree(&pat);
- ret=(ret==0);
}
+ ret=(ret==0);
}
#endif
if(DBG_TRUST)
log_debug("regexp '%s' ('%s') on '%s': %s\n",
- regexp,expr,string,ret==0?"YES":"NO");
+ regexp,expr,string,ret?"YES":"NO");
xfree(regexp);