diff options
author | Nikias Bassen | 2023-05-20 17:32:34 +0200 |
---|---|---|
committer | Nikias Bassen | 2023-05-20 17:32:34 +0200 |
commit | d772fd74d2a52646c34d558220533547725a2298 (patch) | |
tree | a40b961383d9adb56cedb7b47c85ced35f365869 /src | |
parent | 50255a2e2573b1299010cfcf49021f72290219b3 (diff) | |
download | libplist-d772fd74d2a52646c34d558220533547725a2298.tar.gz libplist-d772fd74d2a52646c34d558220533547725a2298.tar.bz2 |
Add an explicit PLIST_FORMAT_NONE value
Diffstat (limited to 'src')
-rw-r--r-- | src/plist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plist.c b/src/plist.c index 677e398..ccb7359 100644 --- a/src/plist.c +++ b/src/plist.c @@ -207,8 +207,8 @@ plist_err_t plist_from_memory(const char *plist_data, uint32_t length, plist_t * if (!plist_data || length == 0) { return PLIST_ERR_INVALID_ARG; } - plist_format_t fmt = 0; - if (format) *format = 0; + plist_format_t fmt = PLIST_FORMAT_NONE; + if (format) *format = PLIST_FORMAT_NONE; if (plist_is_binary(plist_data, length)) { res = plist_from_bin(plist_data, length, plist); fmt = PLIST_FORMAT_BINARY; |