mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-06-24 06:11: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)
|
||||
return -1;
|
||||
|
||||
while (feof(fp) != 0) {
|
||||
while (feof(fp) == 0) {
|
||||
if (fgets(buf, 1024, fp) == NULL)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user