summaryrefslogtreecommitdiff
path: root/src/bin/eet/eet_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eet/eet_main.c')
-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 c2f0338756..05ad423916 100644
--- a/src/bin/eet/eet_main.c
+++ b/src/bin/eet/eet_main.c
@@ -328,6 +328,13 @@ do_eet_encode(const char *file,
328 328
329 fseek(f, 0, SEEK_END); 329 fseek(f, 0, SEEK_END);
330 textlen = ftell(f); 330 textlen = ftell(f);
331 if (textlen < 0)
332 {
333 ERR("cannot obtain current file position %s", out);
334 fclose(f);
335 exit(-1);
336 }
337
331 rewind(f); 338 rewind(f);
332 text = malloc(textlen); 339 text = malloc(textlen);
333 if (!text) 340 if (!text)