emul: don't segfault on quit when there is no blkfs

This commit is contained in:
Virgil Dupras 2020-04-15 10:56:49 -04:00
parent c40f336959
commit 16d5cd91de

View File

@ -118,7 +118,9 @@ int main(int argc, char *argv[])
tcsetattr(0, TCSAFLUSH, &termInfo);
emul_printdebug();
}
if (blkfp != NULL) {
fclose(blkfp);
}
fclose(fp);
return retcode;
}