aboutsummaryrefslogtreecommitdiffstats
path: root/get-contact-pgpkeys.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-05 23:48:03 +0200
committerMattias Andrée <maandree@kth.se>2021-04-05 23:48:03 +0200
commit21e71d1951192259502681df0f63e6de7254eca9 (patch)
treee9f2e75be70cdbc86540f99f2d2ff9b573ac4d29 /get-contact-pgpkeys.c
parentm + add set-contact-addresses + use -n instead of -l for country (diff)
downloadcontacts-21e71d1951192259502681df0f63e6de7254eca9.tar.gz
contacts-21e71d1951192259502681df0f63e6de7254eca9.tar.bz2
contacts-21e71d1951192259502681df0f63e6de7254eca9.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'get-contact-pgpkeys.c')
-rw-r--r--get-contact-pgpkeys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/get-contact-pgpkeys.c b/get-contact-pgpkeys.c
index 7935d17..97e32c7 100644
--- a/get-contact-pgpkeys.c
+++ b/get-contact-pgpkeys.c
@@ -71,7 +71,7 @@ main(int argc, char *argv[])
}
if (argc > 1)
printf("%s: ", *argv);
- if (display_ctx && display_id)
+ if (!display_ctx == !display_id)
printf("%s: %s\n", key->context, key->id);
else if (display_id)
printf("%s\n", key->id);