summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plist.c b/src/plist.c
index 1eaa4e6..781f795 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -210,7 +210,7 @@ void* memmem(const void* haystack, size_t haystack_len, const void* needle, size
int plist_is_binary(const char *plist_data, uint32_t length)
{
- if (length < 8) {
+ if (plist_data == NULL || length < 8) {
return 0;
}