checking invalid return code for feof

This commit is contained in:
Duncan Laurie 2005-02-01 00:14:37 +00:00
parent 9164d3b69e
commit 8a2a11c520

View File

@ -173,7 +173,7 @@ ipmi_event_fromfile(struct ipmi_intf * intf, char * file)
if (fp == NULL)
return -1;
while (feof(fp) != 0) {
while (feof(fp) == 0) {
if (fgets(buf, 1024, fp) == NULL)
continue;