summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/bin/edje/edje_cc_out.c3
-rw-r--r--src/bin/edje/edje_cc_sources.c9
2 files changed, 8 insertions, 4 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index c791e8d1c6..90c7d8f46c 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -2190,7 +2190,8 @@ data_thread_script(void *data, Ecore_Thread *thread EINA_UNUSED)
2190 return; 2190 return;
2191 } 2191 }
2192 2192
2193 fseek(f, 0, SEEK_END); 2193 if (fseek(f, 0, SEEK_END) < 0)
2194 ERR("Error seeking");
2194 size = ftell(f); 2195 size = ftell(f);
2195 rewind(f); 2196 rewind(f);
2196 2197
diff --git a/src/bin/edje/edje_cc_sources.c b/src/bin/edje/edje_cc_sources.c
index a8bd949576..25ed765c02 100644
--- a/src/bin/edje/edje_cc_sources.c
+++ b/src/bin/edje/edje_cc_sources.c
@@ -63,9 +63,11 @@ source_fetch_file(const char *fil, const char *filname)
63 exit(-1); 63 exit(-1);
64 } 64 }
65 65
66 fseek(f, 0, SEEK_END); 66 if (fseek(f, 0, SEEK_END) < 0)
67 ERR("Error seeking");
67 sz = ftell(f); 68 sz = ftell(f);
68 fseek(f, 0, SEEK_SET); 69 if (fseek(f, 0, SEEK_SET) < 0)
70 ERR("Error seeking");
69 sf = mem_alloc(SZ(SrcFile)); 71 sf = mem_alloc(SZ(SrcFile));
70 sf->name = mem_strdup(filname); 72 sf->name = mem_strdup(filname);
71 sf->file = mem_alloc(sz + 1); 73 sf->file = mem_alloc(sz + 1);
@@ -80,7 +82,8 @@ source_fetch_file(const char *fil, const char *filname)
80 } 82 }
81 83
82 sf->file[sz] = '\0'; 84 sf->file[sz] = '\0';
83 fseek(f, 0, SEEK_SET); 85 if (fseek(f, 0, SEEK_SET) < 0)
86 ERR("Error seeking");
84 srcfiles.list = eina_list_append(srcfiles.list, sf); 87 srcfiles.list = eina_list_append(srcfiles.list, sf);
85 88
86 while (fgets(buf, sizeof(buf), f)) 89 while (fgets(buf, sizeof(buf), f))