summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {
67 } 67 }
68 68
69 void add_sub_node(PListNode* subnode) { 69 void add_sub_node(PListNode* subnode) {
70 plist_add_sub_node($self->node, subnode); 70 if (subnode) {
71 plist_add_sub_node($self->node, subnode->node);
72 }
71 } 73 }
72 74
73 void add_sub_key(char* k) { 75 void add_sub_key(char* k) {