Commit 66d2bb65 authored by Nikias Bassen's avatar Nikias Bassen

Make plist_bool_val_is_true() return 0 instead of -1 if node is NULL or not a PLIST_BOOLEAN

parent ea5b54b4
......@@ -1189,7 +1189,7 @@ PLIST_API void plist_set_date_val(plist_t node, int32_t sec, int32_t usec)
PLIST_API int plist_bool_val_is_true(plist_t boolnode)
{
if (!PLIST_IS_BOOLEAN(boolnode)) {
return -1;
return 0;
}
uint8_t bv = 0;
plist_get_bool_val(boolnode, &bv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment