diff options
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) { |