aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/load-pine-addressbook.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/load-pine-addressbook.c b/addressbook/backend/ebook/load-pine-addressbook.c
index 1bf85cb1a6..ee0d8c1ac3 100644
--- a/addressbook/backend/ebook/load-pine-addressbook.c
+++ b/addressbook/backend/ebook/load-pine-addressbook.c
@@ -56,6 +56,12 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure)
{
FILE *fp = fopen (".addressbook", "r");
char line[1024];
+
+ if (!fp) {
+ g_warning ("Can't find .addressbook");
+ return;
+ }
+
while(fgets(line, 1024, fp)) {
int length = strlen(line);
char **strings;