summaryrefslogtreecommitdiffstats
path: root/swig/plist.i
diff options
context:
space:
mode:
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) {