diff options
author | Nikias Bassen | 2023-01-31 01:55:24 +0100 |
---|---|---|
committer | Nikias Bassen | 2023-01-31 01:55:24 +0100 |
commit | 04e082ef5f8fbc3ffadf5efdf2ae268e5de1300d (patch) | |
tree | ee2009ce28a09d7b45f8196fe54ce84fc78bbe64 | |
parent | d400f2dd01538b074142b5c148338c40287728be (diff) | |
download | libplist-04e082ef5f8fbc3ffadf5efdf2ae268e5de1300d.tar.gz libplist-04e082ef5f8fbc3ffadf5efdf2ae268e5de1300d.tar.bz2 |
jplist: Fix handling of PLIST_NULL type when converting to JSON
-rw-r--r-- | src/jplist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jplist.c b/src/jplist.c index 3a38ba3..23fb45b 100644 --- a/src/jplist.c +++ b/src/jplist.c @@ -362,6 +362,9 @@ static int node_estimate_size(node_t *node, uint64_t *size, uint32_t depth, int case PLIST_BOOLEAN: *size += ((data->boolval) ? 4 : 5); break; + case PLIST_NULL: + *size += 4; + break; case PLIST_DICT: case PLIST_ARRAY: *size += 2; |