Reviewers: Jaehyun_Cho, zmike
Reviewed By: Jaehyun_Cho
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7796
Change-Id: I9ccd53b3e60e63696ca59392c952030b803b0062
return;
}
- fseek(f, 0, SEEK_END);
+ if (fseek(f, 0, SEEK_END) < 0)
+ ERR("Error seeking");
size = ftell(f);
rewind(f);
exit(-1);
}
- fseek(f, 0, SEEK_END);
+ if (fseek(f, 0, SEEK_END) < 0)
+ ERR("Error seeking");
sz = ftell(f);
- fseek(f, 0, SEEK_SET);
+ if (fseek(f, 0, SEEK_SET) < 0)
+ ERR("Error seeking");
sf = mem_alloc(SZ(SrcFile));
sf->name = mem_strdup(filname);
sf->file = mem_alloc(sz + 1);
}
sf->file[sz] = '\0';
- fseek(f, 0, SEEK_SET);
+ if (fseek(f, 0, SEEK_SET) < 0)
+ ERR("Error seeking");
srcfiles.list = eina_list_append(srcfiles.list, sf);
while (fgets(buf, sizeof(buf), f))