diff --git a/src/common/assoc_mgr.c b/src/common/assoc_mgr.c index 4270a972046d17ad6cbe871efc2cd7afa4387f80..13d18846a28a46f262922135beb2ecf73970e0eb 100644 --- a/src/common/assoc_mgr.c +++ b/src/common/assoc_mgr.c @@ -1106,7 +1106,7 @@ static int _post_tres_list(List new_list, int new_cnt) tres_rec->name ? tres_rec->name : ""); /* This should only happen if a new static TRES are added. */ - if ((i < g_tres_count) && + if (assoc_mgr_tres_array && (i < g_tres_count) && (new_array[i]->id != assoc_mgr_tres_array[i]->id)) changed_pos = true; i++;