aboutsummaryrefslogtreecommitdiffstats
path: root/get-contact-photos.c
diff options
context:
space:
mode:
Diffstat (limited to 'get-contact-photos.c')
-rw-r--r--get-contact-photos.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/get-contact-photos.c b/get-contact-photos.c
index 3b44393..115c776 100644
--- a/get-contact-photos.c
+++ b/get-contact-photos.c
@@ -45,8 +45,10 @@ main(int argc, char *argv[])
}
for (; *argv; argv++) {
- if (libcontacts_load_contact(*argv, &contact, user))
- eprintf("libcontacts_load_contact %s: %s\n", *argv, errno ? strerror(errno) : "contact file is malformatted");
+ if (libcontacts_load_contact(*argv, &contact, user)) {
+ eprintf("libcontacts_load_contact %s: %s\n", *argv,
+ errno ? strerror(errno) : "contact file is malformatted");
+ }
if (!contact.photos) {
libcontacts_contact_destroy(&contact);
for (i = 0; photos[i]; i++)