From d42daece4ac4f376d2b0945012767dd7394fb305 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 30 Oct 2001 23:05:36 +0000 Subject: Do some NULL checking before dereferencing things. svn path=/trunk/; revision=14497 --- my-evolution/e-summary-preferences.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'my-evolution/e-summary-preferences.c') 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 -- cgit v1.2.3