diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-10-31 07:05:36 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-10-31 07:05:36 +0800 |
commit | d42daece4ac4f376d2b0945012767dd7394fb305 (patch) | |
tree | 28dc5eecab5b19eaa2e4185824cfe694a9be22ab /my-evolution/e-summary-preferences.c | |
parent | f9b4d697114fbb6b24b9d1cf2e3e109bcceb9688 (diff) | |
download | gsoc2013-evolution-d42daece4ac4f376d2b0945012767dd7394fb305.tar gsoc2013-evolution-d42daece4ac4f376d2b0945012767dd7394fb305.tar.gz gsoc2013-evolution-d42daece4ac4f376d2b0945012767dd7394fb305.tar.bz2 gsoc2013-evolution-d42daece4ac4f376d2b0945012767dd7394fb305.tar.lz gsoc2013-evolution-d42daece4ac4f376d2b0945012767dd7394fb305.tar.xz gsoc2013-evolution-d42daece4ac4f376d2b0945012767dd7394fb305.tar.zst gsoc2013-evolution-d42daece4ac4f376d2b0945012767dd7394fb305.zip |
Do some NULL checking before dereferencing things.
svn path=/trunk/; revision=14497
Diffstat (limited to 'my-evolution/e-summary-preferences.c')
-rw-r--r-- | my-evolution/e-summary-preferences.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/my-evolution/e-summary-preferences.c b/my-evolution/e-summary-preferences.c index e4d781deb2..ea05ae5959 100644 --- a/my-evolution/e-summary-preferences.c +++ b/my-evolution/e-summary-preferences.c @@ -469,6 +469,11 @@ find_name_for_url (PropertyData *pd, for (p = pd->rdf->known; p; p = p->next) { struct _RDFInfo *info = p->data; + + if (info == NULL || info->url == NULL) { + continue; + } + if (strcmp (url, info->url) == 0) { return info->name; } @@ -565,6 +570,8 @@ fill_rdf_all_clist (GtkCList *clist, (GtkDestroyNotify) free_rdf_info); g_strfreev (tokens); } + + fclose (handle); } static void |