[lasem] dom_node: check the validity of the new child parameter.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] dom_node: check the validity of the new child parameter.
- Date: Wed, 1 Dec 2010 21:13:56 +0000 (UTC)
commit 621693c7805ecffe45db532b76eb81a33f2f4a1e
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed Dec 1 22:09:20 2010 +0100
dom_node: check the validity of the new child parameter.
src/lsmdomnode.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/lsmdomnode.c b/src/lsmdomnode.c
index 20f7451..d2441ed 100644
--- a/src/lsmdomnode.c
+++ b/src/lsmdomnode.c
@@ -421,6 +421,7 @@ lsm_dom_node_append_child (LsmDomNode* self, LsmDomNode* new_child)
LsmDomNodeClass *node_class;
g_return_val_if_fail (LSM_IS_DOM_NODE (self), NULL);
+ g_return_val_if_fail (LSM_IS_DOM_NODE (new_child), NULL);
g_return_val_if_fail (new_child->parent_node == NULL, NULL);
if (!LSM_DOM_NODE_GET_CLASS (self)->can_append_child (self, new_child)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]