- don't segv if we can't open the file. this would die if you had a file with

the same name as the directory edje_decc was trying to create.


SVN revision: 12433
This commit is contained in:
Dan Sinclair 2004-12-10 16:03:42 +00:00 committed by Dan Sinclair
parent 00d380b617
commit 245dcb02e7
1 changed files with 5 additions and 0 deletions

View File

@ -201,6 +201,11 @@ output(void)
exit (-1);
}
f = fopen(out, "w");
if (!f)
{
printf("ERROR: unable to write file (%s).\n", out);
exit (-1);
}
fputs(sf->file, f);
fclose(f);
}