Skip to content

Commit 635b7fa

Browse files
committed
param API: Ensure info count method is called
1 parent 2e1f5c4 commit 635b7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/systemlib/param/param.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ param_for_index(unsigned index)
300300
param_t
301301
param_for_used_index(unsigned index)
302302
{
303-
if (index < param_info_count) {
303+
if (index < get_param_info_count()) {
304304

305305
/* walk all params and count */
306306
int count = 0;

0 commit comments

Comments
 (0)