Fixed segfault caused when reading from index file

This commit is contained in:
Simon Harris 2017-09-01 15:41:21 +01:00
parent 2641613686
commit 4db1c0295c
1 changed files with 1 additions and 0 deletions

1
main.c
View File

@ -240,6 +240,7 @@ int main(int argc, char *argv[])
mm_idx_t *mi;
if (fpr) {
mi = mm_idx_load(fpr);
if (mi == 0) break;
if (idx_par_set && mm_verbose >= 2 && (mi->k != k || mi->w != w || mi->is_hpc != is_hpc))
fprintf(stderr, "[WARNING] \033[1;31mIndexing parameters on the command line (-k/-w/-H) overridden by parameters in the prebuilt index.\033[0m\n");
} else {