diff options
author | Peter Anthony Harvey <paharvey@src.gnome.org> | 2006-01-17 06:24:00 +0800 |
---|---|---|
committer | Peter Anthony Harvey <paharvey@src.gnome.org> | 2006-01-17 06:24:00 +0800 |
commit | 77ae969e519a6105c8467dbd4333f918dd55668f (patch) | |
tree | c43148c8ba45c0488b4aa5be7577b9f3dc2d8bd2 | |
parent | fc5cf8d5c9d92fa785bb6605519161658edf2334 (diff) | |
download | gsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.tar.gz gsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.tar.zst gsoc2013-epiphany-77ae969e519a6105c8467dbd4333f918dd55668f.zip |
Do not try to store a string parameter if it is null (avoids segfault).
-rw-r--r-- | lib/ephy-node.c | 2 |
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; |