check return of topoErr

This commit is contained in:
Hisham Muhammad 2014-04-21 19:17:46 -03:00
parent 30bafafb24
commit 3fbd1ef76d
1 changed files with 2 additions and 0 deletions

View File

@ -224,6 +224,8 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) {
int topoErr = hwloc_topology_init(&this->topology); int topoErr = hwloc_topology_init(&this->topology);
if (topoErr == 0) { if (topoErr == 0) {
topoErr = hwloc_topology_load(this->topology); topoErr = hwloc_topology_load(this->topology);
}
if (topoErr == 0) {
this->topologyOk = true; this->topologyOk = true;
} }
#endif #endif