diff --git a/src/utils_tail.c b/src/utils_tail.c
index eaf8f738d71e163d628fdfca13f0f32c3678c3a1..904a52122e7e40d4d6ebcc47788d218fe99888fa 100644 (file)
--- a/src/utils_tail.c
+++ b/src/utils_tail.c
/* Try to read from the filehandle. If that succeeds, everything appears to
* be fine and we can return. */
+ clearerr (obj->fh);
if (fgets (buf, buflen, obj->fh) != NULL)
{
buf[buflen - 1] = 0;