mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-02 21:30:29 +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)
|
if (first_level == NULL)
|
||||||
{
|
{
|
||||||
close(fd);
|
|
||||||
return EEMILE_MISSING_FIRST;
|
return EEMILE_MISSING_FIRST;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (second_level == NULL)
|
if (second_level == NULL)
|
||||||
{
|
{
|
||||||
close(fd);
|
|
||||||
return EEMILE_MISSING_SECOND;
|
return EEMILE_MISSING_SECOND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user