eina - eina_file - fix leak of fd is fd is 0

this should fix CID 1039181
This commit is contained in:
Carsten Haitzler 2013-12-13 21:16:52 +09:00
parent 5d6e30fae0
commit e4b029da0b
1 changed files with 1 additions and 1 deletions

View File

@ -884,7 +884,7 @@ eina_file_copy(const char *src, const char *dst, Eina_File_Copy_Flags flags, Ein
}
end:
if (d > 0) close(d);
if (d >= 0) close(d);
close(s);
if (!success)