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