From fc661fb23aee42e87370886a17ed9373388d7493 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 25 Jul 2000 21:14:58 +0000 Subject: add textual exception printout. (set_editor_text): close pre tags & check 2000-07-25 Michael Meeks * e-msg-composer.c (get_text): add textual exception printout. (set_editor_text): close pre tags & check for pre-existing sig separator. 2000-07-25 Michael Meeks * mail-config.c (create_identity_page): set default signature to ~/.signature 2000-07-25 Michael Meeks * backend/ebook/load-pine-addressbook.c (book_open_cb): check we opened ok. svn path=/trunk/; revision=4330 --- addressbook/backend/ebook/load-pine-addressbook.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addressbook/backend/ebook') 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; -- cgit