Tolerate unset database path.

This commit is contained in:
Alcaro 2015-08-20 19:24:08 +02:00
parent 28b1c9eada
commit c05bb6e0c3

View File

@ -269,7 +269,7 @@ static int database_info_iterate_crc_lookup(
const char *zip_entry)
{
if ((unsigned)db_state->list_index == (unsigned)db_state->list->size)
if (!db_state->list || (unsigned)db_state->list_index == (unsigned)db_state->list->size)
return database_info_list_iterate_end_no_match(db_state);
if (db_state->entry_index == 0)