Skip to content
Snippets Groups Projects
Commit a297547e authored by Moe Jette's avatar Moe Jette
Browse files

check for NULL pointer

parent 6c36ae28
No related branches found
No related tags found
No related merge requests found
......@@ -648,6 +648,9 @@ extern void gres_plugin_node_state_log(List gres_list, char *node_name)
ListIterator gres_iter;
gres_node_state_t *gres_ptr;
if (gres_list == NULL)
return;
(void) gres_plugin_init();
slurm_mutex_lock(&gres_context_lock);
......
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