summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b8a8e5)
raw | patch | inline | side by side (parent: 9b8a8e5)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 11 Jun 2005 05:03:33 +0000 (05:03 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 11 Jun 2005 05:03:33 +0000 (05:03 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@619 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_open.c | patch | blob | history |
diff --git a/src/rrd_open.c b/src/rrd_open.c
index 2b0f30391d35fad220ca1e91b9190add9422a86a..11476de43cb85bcec38ceb56cab7a42da86454c9 100644 (file)
--- a/src/rrd_open.c
+++ b/src/rrd_open.c
MYFREAD(rrd->stat_head, stat_head_t, 1)
/* lets see if the first read worked */
- if (ferror( *in_file )){
+ if (ferror( *in_file ) || feof(*in_file)) {
rrd_set_error("reading the cookie off %s faild",file_name);
fclose(*in_file);
return(-1);