From f2221caf04162729f527e02a2e368bb4f9d0b919 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 1 Sep 2008 13:45:57 +0200 Subject: [PATCH] Exit if option parsing fails --- src/eweouz-write-addressbook.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.39.5