Skip to content
Snippets Groups Projects
Commit 249353aa authored by Morris Jette's avatar Morris Jette
Browse files

Merge branch 'slurm-14.03'

Conflicts:
	META
parents d262d9a7 13c454fa
No related branches found
No related tags found
No related merge requests found
......@@ -80,12 +80,13 @@ static uint32_t _threads_per_core(char *host)
{
uint32_t i, threads = 1;
if (!job_node_ptr)
if (!job_node_ptr || !host)
return threads;
slurm_mutex_lock(&job_node_info_lock);
for (i = 0; i < job_node_ptr->record_count; i++) {
if (!strcmp(host, job_node_ptr->node_array[i].name)) {
if (job_node_ptr->node_array[i].name &&
!strcmp(host, job_node_ptr->node_array[i].name)) {
threads = job_node_ptr->node_array[i].threads;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment