From: Tollef Fog Heen Date: Mon, 1 Sep 2008 11:45:57 +0000 (+0200) Subject: Exit if option parsing fails X-Git-Tag: 0.2^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2221caf04162729f527e02a2e368bb4f9d0b919;p=eweouz Exit if option parsing fails --- diff --git a/src/eweouz-write-addressbook.c b/src/eweouz-write-addressbook.c index b8f18ec..3f57c94 100644 --- a/src/eweouz-write-addressbook.c +++ b/src/eweouz-write-addressbook.c @@ -56,12 +56,14 @@ int main(int argc, char **argv) if (error != NULL) { fprintf(stderr, "%s\n", error->message); + exit(1); } e_book_get_addressbooks(&source_list, &error); if (error != NULL) { fprintf(stderr, "%s\n", error->message); + exit(1); } if (id == NULL) {