aboutsummaryrefslogtreecommitdiffstats
path: root/get-contact-emails.c
diff options
context:
space:
mode:
Diffstat (limited to 'get-contact-emails.c')
-rw-r--r--get-contact-emails.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/get-contact-emails.c b/get-contact-emails.c
index 257326e..1e688f6 100644
--- a/get-contact-emails.c
+++ b/get-contact-emails.c
@@ -71,7 +71,7 @@ main(int argc, char *argv[])
}
if (argc > 1)
printf("%s: ", *argv);
- if (display_ctx && display_addr)
+ if (!display_ctx == !display_addr)
printf("%s: %s\n", email->context, email->address);
else if (display_addr)
printf("%s\n", email->address);