Skip to content

Commit

Permalink
Merge pull request #2927 from ihsinme/patch-2
Browse files Browse the repository at this point in the history
Fix for access due to low memory.
  • Loading branch information
liviuchircu committed Oct 25, 2022
2 parents e6a848b + 9ed1485 commit 3186096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfg.y
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ startup_route_stm: ROUTE_STARTUP LBRACE actions RBRACE {

timer_route_stm: ROUTE_TIMER LBRACK route_name COMMA NUMBER RBRACK LBRACE actions RBRACE {
i_tmp = 0;
while(sroutes->timer[i_tmp].a!=0 && i_tmp<TIMER_RT_NO){
while(i_tmp<TIMER_RT_NO && sroutes->timer[i_tmp].a!=0){
i_tmp++;
}
if(i_tmp == TIMER_RT_NO) {
Expand Down

0 comments on commit 3186096

Please sign in to comment.