libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
535 stars 304 forks source link

plist_copy Proposed modification #153

Closed xdeng closed 4 years ago

xdeng commented 4 years ago
PLIST_API plist_t plist_copy(plist_t node)
{
    return plist_copy_node(node);
}
PLIST_API plist_t plist_copy(plist_t node)
{
    return node ? plist_copy_node(node) : NULL;
}
nikias commented 4 years ago

Actually seems like a good idea to me to change it like that.

nikias commented 4 years ago

See commit ea5b54b47acec3bebd3e8ae3fccd66a60ec9ff89.