Skip to content

Fix popen return value check#11

Open
illiav-j wants to merge 1 commit intoAMDESE:mainfrom
illiav-j:fix-compile-error
Open

Fix popen return value check#11
illiav-j wants to merge 1 commit intoAMDESE:mainfrom
illiav-j:fix-compile-error

Conversation

@illiav-j
Copy link
Copy Markdown

Fixes the error when trying to build on the latest OpenBMC:

| …/src/cpu_info.cpp: In member function 'bool CpuInfo::getNumberOfCpu()':
| …/src/cpu_info.cpp:530:14: error: ordered comparison of pointer with integer zero ('FILE*' and 'int')
|   530 |        if(pf > 0)
|       |           ~~~^~~

This change has not been tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant