[GRASS-git] [OSGeo/grass] ed02be: ps.map: initialize variable contents before using ...
Mohan Yelugoti
noreply at github.com
Mon Oct 14 04:54:53 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: ed02be59ff4129bbc3bd9fbb7545b7b73648be99
https://github.com/OSGeo/grass/commit/ed02be59ff4129bbc3bd9fbb7545b7b73648be99
Author: Mohan Yelugoti <ymdatta.work at gmail.com>
Date: 2024-10-14 (Mon, 14 Oct 2024)
Changed paths:
M ps/ps.map/do_geogrid.c
Log Message:
-----------
ps.map: initialize variable contents before using them in get_ll_bounds (#4501)
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 at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list