From 3fbd1ef76d5c17e7180b91475636d02c14f60fe2 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 21 Apr 2014 19:17:46 -0300 Subject: check return of topoErr --- ProcessList.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ProcessList.c') 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 -- cgit v1.2.3