diff options
Diffstat (limited to 'find-contact-by-pgpkey.c')
-rw-r--r-- | find-contact-by-pgpkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/find-contact-by-pgpkey.c b/find-contact-by-pgpkey.c index 85d2202..94c312f 100644 --- a/find-contact-by-pgpkey.c +++ b/find-contact-by-pgpkey.c @@ -42,7 +42,7 @@ main(int argc, char *argv[]) for (; (pgpkey = *pgpkeys); pgpkeys++) { if (!pgpkey->id) continue; - if (context && (!pgpkey->context || strcmp(pgpkey->context, context))) + if (context && strcmpnul(pgpkey->context, context)) continue; if (list) printf("%s (%s)\n", contacts[i]->id, pgpkey->id); |