summaryrefslogtreecommitdiff
path: root/src/bin/edje/edje_cc_sources.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/bin/edje/edje_cc_sources.c9
1 files changed, 6 insertions, 3 deletions
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))