summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-04-21 19:17:46 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-04-21 19:17:46 -0300
commit3fbd1ef76d5c17e7180b91475636d02c14f60fe2 (patch)
treed881058511a5698ef268570fd9019dbaaf2ba107
parent30bafafb240388a63aecc4053414dca0289c7b7b (diff)
check return of topoErr
-rw-r--r--ProcessList.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ProcessList.c b/ProcessList.c
index e0c1f816..343885c7 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -224,6 +224,8 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) {
int topoErr = hwloc_topology_init(&this->topology);
if (topoErr == 0) {
topoErr = hwloc_topology_load(this->topology);
+ }
+ if (topoErr == 0) {
this->topologyOk = true;
}
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy