Commit fafa0e25 authored by winckel's avatar winckel
Browse files

Fixed a potential array index error.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4498 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent c964219d
......@@ -329,7 +329,10 @@ int omv_write(int pfd, Node_list enb_node_list, Node_list ue_node_list, Data_Flo
omv_data.geo[i].Pathloss = 44;
omv_data.geo[i].RSSI[0] = 33;
omv_data.geo[i].RSSI[1] = 22;
omv_data.geo[i].RSSI[2] = 11;
if ((sizeof(omv_data.geo[0].RSSI) / sizeof(omv_data.geo[0].RSSI[0])) > 2)
{
omv_data.geo[i].RSSI[2] = 11;
}
ue_node_list = ue_node_list->next;
omv_data.geo[i].Neighbors = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment