• Xiao Deng's avatar
    Return NULL from plist_copy() if passed a NULL pointer · ea5b54b4
    Xiao Deng authored
    This will prevent an assert if a NULL pointer is passed, and can make
    writing some code easier and cleaner without the need for a NULL check.
    For example, plist_copy(plist_dict_get_item(dict, "abc")) would give us
    a copy of the dict's node if the dict has a value for the given key, or
    NULL without any further checks.
    ea5b54b4
plist.c 34.4 KB