mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-07-04 03:33:36 +00:00
checking invalid return code for feof
This commit is contained in:
@ -173,7 +173,7 @@ ipmi_event_fromfile(struct ipmi_intf * intf, char * file)
|
|||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
while (feof(fp) != 0) {
|
while (feof(fp) == 0) {
|
||||||
if (fgets(buf, 1024, fp) == NULL)
|
if (fgets(buf, 1024, fp) == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user