aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2002-06-27 01:15:54 +0800
committerIain Holmes <iain@src.gnome.org>2002-06-27 01:15:54 +0800
commitfb89bd8441ca4c5f482412dad07e778a117d2eb8 (patch)
treed9070965e9dc2f85797cf87bbc5bd473203828db
parent8d54d8cfbdb83326104f8c783c5d6546ada712bb (diff)
downloadgsoc2013-evolution-fb89bd8441ca4c5f482412dad07e778a117d2eb8.tar.gz
gsoc2013-evolution-fb89bd8441ca4c5f482412dad07e778a117d2eb8.tar.zst
gsoc2013-evolution-fb89bd8441ca4c5f482412dad07e778a117d2eb8.zip
Fix crash on "broken" rdfs
svn path=/trunk/; revision=17293
-rw-r--r--my-evolution/ChangeLog5
-rw-r--r--my-evolution/e-summary-rdf.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index 6db6d74c14..40d8d443c1 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,5 +1,10 @@
2002-06-26 Iain <iain@ximian.com>
+ * e-summary-rdf.c (layer_find_url): If w == NULL return. Fixes crash
+ if RDF has no link tags.
+
+2002-06-26 Iain <iain@ximian.com>
+
* Locations: Fix a typo and remove Latvia, cos I couldn't find the
correct code for it.
diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c
index 9863b34a0c..8b019301e2 100644
--- a/my-evolution/e-summary-rdf.c
+++ b/my-evolution/e-summary-rdf.c
@@ -129,6 +129,10 @@ layer_find_url (xmlNodePtr node,
}
wb = w = g_malloc (3 * strlen (p));
+
+ if (w == NULL) {
+ return fail;
+ }
if (*r == ' ') r++; /* Fix UF bug */