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