mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 18:30:20 +00:00
remove close() of unitialized fd
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
3130ac4a9e
commit
8a1be776ad
@ -108,13 +108,11 @@ int emile_floppy_create(char *image, char* first_level, char* second_level)
|
||||
|
||||
if (first_level == NULL)
|
||||
{
|
||||
close(fd);
|
||||
return EEMILE_MISSING_FIRST;
|
||||
}
|
||||
|
||||
if (second_level == NULL)
|
||||
{
|
||||
close(fd);
|
||||
return EEMILE_MISSING_SECOND;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user