Commit 85c89d98 authored by Thomas Guillem's avatar Thomas Guillem

keystore: fix crash if entry path found is NULL

parent b1152f5c
......@@ -140,6 +140,8 @@ find_closest_path(vlc_keystore_entry *p_entries, unsigned i_count,
{
vlc_keystore_entry *p_entry = &p_entries[i];
const char *psz_entry_path = p_entry->ppsz_values[KEY_PATH];
if (psz_entry_path == NULL)
continue;
size_t i_entry_pathlen = strlen(psz_entry_path);
if (strncasecmp(psz_decoded_path, psz_entry_path, i_entry_pathlen) == 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment