mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
checking invalid return code for feof
This commit is contained in:
parent
9164d3b69e
commit
8a2a11c520
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user