Skip to content

Commit

Permalink
actionlib: fixf flow control issue in setbarvisibility
Browse files Browse the repository at this point in the history
  • Loading branch information
LBCrion committed Dec 20, 2024
1 parent ad954e0 commit de2d42b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/actionlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,8 @@ static value_t action_setbarvisibility ( vm_t *vm, value_t p[], gint np )
vm_param_check_np_range(vm, np, 1, 2, "SetBarVisibility");
vm_param_check_string(vm, p, np-1, "SetBarVisibility");

if( np==2)
bar_set_visibility((np==2)? bar_from_name(value_get_string(p[0])) : NULL,
NULL, *p[np-1].value.string);
bar_set_visibility((np==2)? bar_from_name(value_get_string(p[0])) : NULL,
NULL, *value_get_string(p[np-1]));

return value_na;
}
Expand Down

0 comments on commit de2d42b

Please sign in to comment.