Skip to content
Snippets Groups Projects
Commit b73e3ef6 authored by Danny Auble's avatar Danny Auble
Browse files

fix for if block_name is null

parent 1869fa7b
No related branches found
No related tags found
No related merge requests found
......@@ -474,13 +474,15 @@ static List _create_block_list(partition_info_msg_t *part_info_ptr,
block_ptr->bg_block_name
= xstrdup(block_info_ptr->
block_array[i].bg_block_id);
if(block_ptr->bg_block_name) {
#ifdef HAVE_BG_FILES
block_ptr->color_inx =
atoi(block_ptr->bg_block_name+7);
block_ptr->color_inx =
atoi(block_ptr->bg_block_name+7);
#else
block_ptr->color_inx =
atoi(block_ptr->bg_block_name+3);
block_ptr->color_inx =
atoi(block_ptr->bg_block_name+3);
#endif
}
block_ptr->color_inx %= sview_colors_cnt;
block_ptr->nodes
......
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