Browse Source

src/core/topology.c: set userdata to NULL to make sure it is going to be properly initialised in case we call starpu_init() again in the same application

Nathalie Furmento 11 years ago
parent
commit
dfd8911aa3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/core/topology.c

+ 1 - 0
src/core/topology.c

@@ -1395,6 +1395,7 @@ _starpu_destroy_topology (
 		if (worker_obj->userdata)
 		{
 			_starpu_worker_list_delete(worker_obj->userdata);
+			worker_obj->userdata = NULL;
 		}
 #endif
 	}