diff options
author | Milan Crha <mcrha@redhat.com> | 2010-02-22 21:43:59 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-02-22 21:43:59 +0800 |
commit | 5853908ad62fd056a2a4d846b96939168f65e2b6 (patch) | |
tree | 194b01bf7f98b9d972d7403ee6c80d1ca1483bf7 /addressbook | |
parent | 8785fd3315996dffceec133f94096577a5547cbc (diff) | |
download | gsoc2013-evolution-5853908ad62fd056a2a4d846b96939168f65e2b6.tar gsoc2013-evolution-5853908ad62fd056a2a4d846b96939168f65e2b6.tar.gz gsoc2013-evolution-5853908ad62fd056a2a4d846b96939168f65e2b6.tar.bz2 gsoc2013-evolution-5853908ad62fd056a2a4d846b96939168f65e2b6.tar.lz gsoc2013-evolution-5853908ad62fd056a2a4d846b96939168f65e2b6.tar.xz gsoc2013-evolution-5853908ad62fd056a2a4d846b96939168f65e2b6.tar.zst gsoc2013-evolution-5853908ad62fd056a2a4d846b96939168f65e2b6.zip |
Bug #602996 - Prevent crash on certain circumstances
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/gui/widgets/eab-gui-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index 31d05d278c..cc78818f6f 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -110,7 +110,7 @@ eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status) "to download its contents."); } - else if (!strncmp (uri, "file:", 5)) { + else if (uri && !strncmp (uri, "file:", 5)) { gchar *path = g_filename_from_uri (uri, NULL, NULL); label = g_strdup_printf ( _("This address book cannot be opened. Please check that the " @@ -120,7 +120,7 @@ eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status) } #ifndef HAVE_LDAP - else if (!strncmp (uri, "ldap:", 5)) { + else if (uri && !strncmp (uri, "ldap:", 5)) { /* special case for ldap: contact folders so we can tell the user about openldap */ can_detail_error = FALSE; |