From 4f795b010b0df0b8ec8fb72470472143ced504b1 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Wed, 15 Apr 2009 21:27:37 +0200 Subject: Pass C pointer to API instead of swig wrapper in binding. --- swig/plist.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'swig') 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) { -- cgit v1.1-32-gdbae