aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--legacy/edje/src/bin/edje_cc_parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/legacy/edje/src/bin/edje_cc_parse.c b/legacy/edje/src/bin/edje_cc_parse.c
index 9695700b7..3c99aa061 100644
--- a/legacy/edje/src/bin/edje_cc_parse.c
+++ b/legacy/edje/src/bin/edje_cc_parse.c
@@ -787,6 +787,10 @@ compile(void)
else *p = 0;
snprintf(tmpn, PATH_MAX, "%s/edje_cc.edc-tmp-XXXXXX", tmp_dir);
fd = mkstemp(tmpn);
+ if (fd < 0)
+ error_and_abort(ef, "Unable to open temp file \"%s\" for pre-processor.",
+ sc->tmpn);
+
if (fd >= 0)
{
int ret;