aboutsummaryrefslogtreecommitdiffstats
path: root/get-contact-organisations.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-organisations.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-organisations.c')
-rw-r--r--get-contact-organisations.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/get-contact-organisations.c b/get-contact-organisations.c
index 70feea5..ae236db 100644
--- a/get-contact-organisations.c
+++ b/get-contact-organisations.c
@@ -71,7 +71,7 @@ main(int argc, char *argv[])
}
if (argc > 1)
printf("%s: ", *argv);
- if (display_org && display_title)
+ if (!display_org == !display_title)
printf("%s: %s\n", org->organisation, org->title);
else if (display_title)
printf("%s\n", org->title);