diff options
| author | 2023-01-31 02:35:15 +0100 | |
|---|---|---|
| committer | 2023-01-31 02:35:15 +0100 | |
| commit | 4b50a5acf1e26ff44904d5e533ff0fc06bde3e61 (patch) | |
| tree | e5e0a23aa9fb0893108050166979d6663f0521c2 /src | |
| parent | 04e082ef5f8fbc3ffadf5efdf2ae268e5de1300d (diff) | |
| download | libplist-4b50a5acf1e26ff44904d5e533ff0fc06bde3e61.tar.gz libplist-4b50a5acf1e26ff44904d5e533ff0fc06bde3e61.tar.bz2 | |
bplist: Fix handling of PLIST_NULL node type
Diffstat (limited to 'src')
| -rw-r--r-- | src/bplist.c | 1 | ||||
| -rw-r--r-- | src/plist.c | 1 |
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) | |||
| 896 | switch (data->type) | 896 | switch (data->type) |
| 897 | { | 897 | { |
| 898 | case PLIST_BOOLEAN: | 898 | case PLIST_BOOLEAN: |
| 899 | case PLIST_NULL: | ||
| 899 | case PLIST_INT: | 900 | case PLIST_INT: |
| 900 | case PLIST_REAL: | 901 | case PLIST_REAL: |
| 901 | case PLIST_DATE: | 902 | 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) | |||
| 1130 | switch (val_a->type) | 1130 | switch (val_a->type) |
| 1131 | { | 1131 | { |
| 1132 | case PLIST_BOOLEAN: | 1132 | case PLIST_BOOLEAN: |
| 1133 | case PLIST_NULL: | ||
| 1133 | case PLIST_INT: | 1134 | case PLIST_INT: |
| 1134 | case PLIST_REAL: | 1135 | case PLIST_REAL: |
| 1135 | case PLIST_DATE: | 1136 | case PLIST_DATE: |
