forked from enlightenment/efl
- 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:
parent
00d380b617
commit
245dcb02e7
|
@ -201,6 +201,11 @@ output(void)
|
||||||
exit (-1);
|
exit (-1);
|
||||||
}
|
}
|
||||||
f = fopen(out, "w");
|
f = fopen(out, "w");
|
||||||
|
if (!f)
|
||||||
|
{
|
||||||
|
printf("ERROR: unable to write file (%s).\n", out);
|
||||||
|
exit (-1);
|
||||||
|
}
|
||||||
fputs(sf->file, f);
|
fputs(sf->file, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue