diff options
-rw-r--r-- | src/plist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plist.c b/src/plist.c index 0fb1017..38212d8 100644 --- a/src/plist.c +++ b/src/plist.c @@ -445,7 +445,7 @@ static plist_t plist_copy_node(node_t *node) PLIST_API plist_t plist_copy(plist_t node) { - return plist_copy_node(node); + return node ? plist_copy_node(node) : NULL; } PLIST_API uint32_t plist_array_get_size(plist_t node) |