summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/eet/eet_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/eet/eet_main.c b/src/bin/eet/eet_main.c
index e59c2599e9..c2f0338756 100644
--- a/src/bin/eet/eet_main.c
+++ b/src/bin/eet/eet_main.c
@@ -269,6 +269,13 @@ do_eet_insert(const char *file,
269 269
270 fseek(f, 0, SEEK_END); 270 fseek(f, 0, SEEK_END);
271 size = ftell(f); 271 size = ftell(f);
272 if (size < 0)
273 {
274 ERR("cannot obtain current file position %s", out);
275 fclose(f);
276 exit(-1);
277 }
278
272 rewind(f); 279 rewind(f);
273 data = malloc(size); 280 data = malloc(size);
274 if (!data) 281 if (!data)