diff options
author | Jonathan Beck | 2009-04-15 21:27:37 +0200 |
---|---|---|
committer | Jonathan Beck | 2009-04-15 21:27:37 +0200 |
commit | 4f795b010b0df0b8ec8fb72470472143ced504b1 (patch) | |
tree | 1af92f85129f4d95cc03b9143b761d3cd269423f /swig | |
parent | fb18f4eb351b6924b309a75c1eb042114fea33ec (diff) | |
download | libplist-4f795b010b0df0b8ec8fb72470472143ced504b1.tar.gz libplist-4f795b010b0df0b8ec8fb72470472143ced504b1.tar.bz2 |
Pass C pointer to API instead of swig wrapper in binding.
Diffstat (limited to 'swig')
-rw-r--r-- | swig/plist.i | 4 |
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) { |