Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: Reduce the scope of the variable 'len' in list_subgp.c #3987

Closed
wants to merge 1 commit into from

Conversation

ShubhamDesai
Copy link
Contributor

Overview:
This pull request reduces the scope of the variable 'len' in the list_subgp.c file. The variable 'len' is now declared inside the loops where it is used.

Issue:
cppcheck identified the following issue:
list_subgp.c:86:9: The scope of the variable 'len' can be reduced. [variableScope]
int len, tot_len;
^
Solution:
The len variable has been moved inside the for loop where it is used. This change reduces its scope.

@github-actions github-actions bot added C Related code is in C libraries imagery labels Jul 5, 2024
@ShubhamDesai ShubhamDesai changed the title imagery: Reduce the scope of the variable 'len' in list_subgp.c lib: Reduce the scope of the variable 'len' in list_subgp.c Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C imagery libraries
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant