summaryrefslogtreecommitdiffstats
path: root/swig/plist.i
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-04-15 21:27:37 +0200
committerGravatar Jonathan Beck2009-04-15 21:27:37 +0200
commit4f795b010b0df0b8ec8fb72470472143ced504b1 (patch)
tree1af92f85129f4d95cc03b9143b761d3cd269423f /swig/plist.i
parentfb18f4eb351b6924b309a75c1eb042114fea33ec (diff)
downloadlibplist-4f795b010b0df0b8ec8fb72470472143ced504b1.tar.gz
libplist-4f795b010b0df0b8ec8fb72470472143ced504b1.tar.bz2
Pass C pointer to API instead of swig wrapper in binding.
Diffstat (limited to 'swig/plist.i')
-rw-r--r--swig/plist.i4
1 files changed, 3 insertions, 1 deletions
diff --git a/swig/plist.i b/swig/plist.i
index 055039b..2347a6d 100644
--- a/swig/plist.i
+++ b/swig/plist.i
@@ -67,7 +67,9 @@ typedef struct {
}
void add_sub_node(PListNode* subnode) {
- plist_add_sub_node($self->node, subnode);
+ if (subnode) {
+ plist_add_sub_node($self->node, subnode->node);
+ }
}
void add_sub_key(char* k) {