1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-17 08:08:07 +11: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); tcsetattr(0, TCSAFLUSH, &termInfo);
emul_printdebug(); emul_printdebug();
} }
if (blkfp != NULL) {
fclose(blkfp); fclose(blkfp);
}
fclose(fp); fclose(fp);
return retcode; return retcode;
} }