summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-01-31 02:35:15 +0100
committerGravatar Nikias Bassen2023-01-31 02:35:15 +0100
commit4b50a5acf1e26ff44904d5e533ff0fc06bde3e61 (patch)
treee5e0a23aa9fb0893108050166979d6663f0521c2 /src
parent04e082ef5f8fbc3ffadf5efdf2ae268e5de1300d (diff)
downloadlibplist-4b50a5acf1e26ff44904d5e533ff0fc06bde3e61.tar.gz
libplist-4b50a5acf1e26ff44904d5e533ff0fc06bde3e61.tar.bz2
bplist: Fix handling of PLIST_NULL node type
Diffstat (limited to 'src')
-rw-r--r--src/bplist.c1
-rw-r--r--src/plist.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/bplist.c b/src/bplist.c
index 8927de6..c0d0fc8 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -896,6 +896,7 @@ static unsigned int plist_data_hash(const void* key)
switch (data->type)
{
case PLIST_BOOLEAN:
+ case PLIST_NULL:
case PLIST_INT:
case PLIST_REAL:
case PLIST_DATE:
diff --git a/src/plist.c b/src/plist.c
index 5d06311..b120046 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -1130,6 +1130,7 @@ int plist_data_compare(const void *a, const void *b)
switch (val_a->type)
{
case PLIST_BOOLEAN:
+ case PLIST_NULL:
case PLIST_INT:
case PLIST_REAL:
case PLIST_DATE: