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:
parent
c40f336959
commit
16d5cd91de
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user