Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v.generalize: Initialize all of structure contents before using it (#…
…4281) * v.generalize: Initialize all of structure contents before using it Currently, in `head` which is a `POINT_LIST` structure, we are only initializing the next pointer to NULL, but data present in the point substructure is not initialized which implies that it would be filled with random data. To avoid such scenario, initialize point coordinates to zero. This was found using cppcheck tool. Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com> * Use correct literal for double type Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com> --------- Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com> Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
- Loading branch information