aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Meeks <michael@helixcode.com>2001-01-04 08:59:29 +0800
committerMichael Meeks <michael@src.gnome.org>2001-01-04 08:59:29 +0800
commit30ff318dbb64f32d4038730013f4474a47db170c (patch)
tree71948be99a5ba95b67bd6971e5c0e7eb59f23c91
parentbe58a487020d59bfbd012596ec74bf1ddb715c5d (diff)
downloadgsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.gz
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.bz2
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.lz
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.xz
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.zst
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.zip
check capabilities is valid before doing a strstr.
2001-01-03 Michael Meeks <michael@helixcode.com> * gui/widgets/e-addressbook-model.c (get_view): check capabilities is valid before doing a strstr. svn path=/trunk/; revision=7242
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 14cf35db26..6f96dbba45 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2001-01-03 Michael Meeks <michael@helixcode.com>
+ * gui/widgets/e-addressbook-model.c (get_view): check
+ capabilities is valid before doing a strstr.
+
+2001-01-03 Michael Meeks <michael@helixcode.com>
+
* backend/pas/pas-backend-file.c (pas_backend_file_search):
g_strdup things we g_free.
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index 830b70879c..35c8dda745 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/e-addressbook-model.c
@@ -317,19 +317,19 @@ book_view_loaded (EBook *book, EBookStatus status, EBookView *book_view, gpointe
}
static gboolean
-get_view(EAddressbookModel *model)
+get_view (EAddressbookModel *model)
{
if (model->book && model->query) {
if (model->first_get_view) {
char *capabilities;
- capabilities = e_book_get_static_capabilities(model->book);
- if (strstr(capabilities, "local")) {
- e_book_get_book_view(model->book, model->query, book_view_loaded, model);
+ capabilities = e_book_get_static_capabilities (model->book);
+ if (capabilities && strstr (capabilities, "local")) {
+ e_book_get_book_view (model->book, model->query, book_view_loaded, model);
}
model->first_get_view = FALSE;
}
else
- e_book_get_book_view(model->book, model->query, book_view_loaded, model);
+ e_book_get_book_view (model->book, model->query, book_view_loaded, model);
}
model->get_view_idle = 0;