diff --git a/src/plugins/select/bluegene/bgl_part_info.c b/src/plugins/select/bluegene/bgl_part_info.c index fc2c1692cfbb59d6d4db31f31a861b762613ea02..f002702a2ef2876ded77af5b72129111035a0750 100644 --- a/src/plugins/select/bluegene/bgl_part_info.c +++ b/src/plugins/select/bluegene/bgl_part_info.c @@ -228,7 +228,7 @@ extern int update_partition_list() && bgl_record->user_name) { if(!strcmp(bgl_record->target_name, slurmctld_conf. - slurm_user_name) { + slurm_user_name)) { if(strcmp(bgl_record->target_name, bgl_record->user_name)) { error("Partition %s was in a " @@ -252,11 +252,12 @@ extern int update_partition_list() "for partition %s.", bgl_record->bgl_part_id); } - } else if(bgl_record->user_name) { - error("Target Name was not set " - "not set for partition %s.", - bgl_record->bgl_part_id); - bgl_record->target_name = + + } else if(bgl_record->user_name) { + error("Target Name was not set " + "not set for partition %s.", + bgl_record->bgl_part_id); + bgl_record->target_name = xstrdup(bgl_record->user_name); } else { error("Target Name and User Name are "