aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPeter Anthony Harvey <paharvey@src.gnome.org>2006-01-17 06:24:00 +0800
committerPeter Anthony Harvey <paharvey@src.gnome.org>2006-01-17 06:24:00 +0800
commit77ae969e519a6105c8467dbd4333f918dd55668f (patch)
treec43148c8ba45c0488b4aa5be7577b9f3dc2d8bd2 /lib
parentfc5cf8d5c9d92fa785bb6605519161658edf2334 (diff)
downloadgsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.tar
gsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.tar.gz
gsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.tar.bz2
gsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.tar.lz
gsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.tar.xz
gsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.tar.zst
gsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.zip
Do not try to store a string parameter if it is null (avoids segfault).
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-node.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ephy-node.c b/lib/ephy-node.c
index 67889893b..36bc2d22c 100644
--- a/lib/ephy-node.c
+++ b/lib/ephy-node.c
@@ -724,6 +724,8 @@ ephy_node_write_to_xml(EphyNode *node,
value = g_ptr_array_index (node->properties, i);
if (value == NULL) continue;
+ if (G_VALUE_TYPE (value) == G_TYPE_STRING &&
+ g_value_get_string (value) == NULL) continue;
ret = xmlTextWriterStartElement (writer, (const xmlChar *)"property");
if (ret < 0) break;