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

better check

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