aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-05-27 17:57:51 +0800
committerXan Lopez <xan@src.gnome.org>2003-05-27 17:57:51 +0800
commit3f867c41ebb0b4bc84c9bffc3d2338f35981ac52 (patch)
treee728081d57154849caed846c192ed2630b14bf97 /lib
parentd24b49b8d86929645b0e6fe2a1cf47d9f35768f6 (diff)
downloadgsoc2013-epiphany-3f867c41ebb0b4bc84c9bffc3d2338f35981ac52.tar
gsoc2013-epiphany-3f867c41ebb0b4bc84c9bffc3d2338f35981ac52.tar.gz
gsoc2013-epiphany-3f867c41ebb0b4bc84c9bffc3d2338f35981ac52.tar.bz2
gsoc2013-epiphany-3f867c41ebb0b4bc84c9bffc3d2338f35981ac52.tar.lz
gsoc2013-epiphany-3f867c41ebb0b4bc84c9bffc3d2338f35981ac52.tar.xz
gsoc2013-epiphany-3f867c41ebb0b4bc84c9bffc3d2338f35981ac52.tar.zst
gsoc2013-epiphany-3f867c41ebb0b4bc84c9bffc3d2338f35981ac52.zip
More of the same.
More of the same.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-node.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ephy-node.c b/lib/ephy-node.c
index 35545d74c..e88cb13ce 100644
--- a/lib/ephy-node.c
+++ b/lib/ephy-node.c
@@ -322,6 +322,8 @@ ephy_node_new (EphyNodeDb *db)
{
long id;
+ g_return_val_if_fail (EPHY_IS_NODE_DB (db), NULL);
+
id = _ephy_node_db_new_id (db);
return ephy_node_new_with_id (db, id);
@@ -332,6 +334,8 @@ ephy_node_new_with_id (EphyNodeDb *db, gulong reserved_id)
{
EphyNode *node;
+ g_return_val_if_fail (EPHY_IS_NODE_DB (db), NULL);
+
node = g_new0 (EphyNode, 1);
node->lock = g_new0 (GStaticRWLock, 1);
@@ -366,6 +370,8 @@ ephy_node_new_with_id (EphyNodeDb *db, gulong reserved_id)
EphyNodeDb *
ephy_node_get_db (EphyNode *node)
{
+ g_return_val_if_fail (EPHY_IS_NODE (node), NULL);
+
return node->db;
}