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

i.segment: Fix uninitialized struct member error in region_growing.c #3974

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

ShubhamDesai
Copy link
Contributor

This pull request fixes an issue in region_growing.c where the struct member Ri was used without being initialized. The change initializes Ri to {0} to ensure all members are properly set before use.

Changes Made:

  • Initialize Ri to {0}.

This fix resolves the cppcheck warning related to the uninitialized variable.

@github-actions github-actions bot added C Related code is in C module imagery labels Jul 2, 2024
@echoix
Copy link
Member

echoix commented Jul 4, 2024

I can't judge this as I don't know that syntax yet

@echoix echoix added this to the 8.5.0 milestone Jul 4, 2024
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@marisn marisn merged commit 83f615a into OSGeo:main Jul 8, 2024
26 checks passed
a0x8o pushed a commit to a0x8o/grass that referenced this pull request Jul 23, 2024
…SGeo#3974)

* Fix uninitialized struct member error in region_growing.c

Co-authored-by: Shubham Vasudeo Desai <[email protected]>
Co-authored-by: Shubham Vasudeo Desai <[email protected]>
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 module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants