diff options
-rw-r--r-- | mpq-fs.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -104,6 +104,9 @@ void mpqlib_fs_attach_listfile(struct mpq_archive_t * mpq_a, const char * listfi * Recursively find a file. */ static hash_entry * find_file(char * fname) { + if (!hash_table) + return NULL; + if (!hfind(hash_table, (uint8_t *) fname, strlen(fname))) return NULL; |