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

ps.map: initialize variable contents before using them in get_ll_bounds #4501

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

ymdatta
Copy link
Contributor

@ymdatta ymdatta commented Oct 11, 2024

In some situations, when some conditionals fails, we would be assigning uninitialized variables to values, which is undefined behavior. Fix that by assigning a value to the variables.

This was found using cppcheck tool.

Before the fix:

image

After the fix:

image

In some situations, when some conditionals fails, we would be assigning
uninitialized variables to values, which is undefined behavior. Fix that
by assigning a value to the variables.

This was found using cppcheck tool.

Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
@github-actions github-actions bot added C Related code is in C module labels Oct 11, 2024
@nilason nilason added this to the 8.5.0 milestone Oct 12, 2024
@echoix echoix merged commit ed02be5 into OSGeo:main Oct 14, 2024
26 checks passed
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 module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants