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);
|
||||
emul_printdebug();
|
||||
}
|
||||
fclose(blkfp);
|
||||
if (blkfp != NULL) {
|
||||
fclose(blkfp);
|
||||
}
|
||||
fclose(fp);
|
||||
return retcode;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user