don't need to close and reopen a file in import config dialog

SVN revision: 75087
This commit is contained in:
Mike Blumenkrantz 2012-08-10 10:34:19 +00:00
parent b4fdb00c96
commit 163f21d4b5
1 changed files with 1 additions and 2 deletions

View File

@ -53,9 +53,8 @@ _import_edj_gen(E_Import_Config_Dialog *import)
printf("Error Creating tmp file: %s\n", strerror(errno));
return;
}
close(fd);
f = fopen(tmpn, "w");
f = fdopen(fd, "w");
if (!f)
{
printf("Cannot open %s for writing\n", tmpn);