1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-09-29 09:10:56 +10:00

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();
}
fclose(blkfp);
if (blkfp != NULL) {
fclose(blkfp);
}
fclose(fp);
return retcode;
}