Fix uninitialized scalar errors reported by Coverity: #16

Open
bobk2824 wants to merge 1 commit from bobk2824/bugfix-uninitialized-scalar into master
bobk2824 commented 2022-10-14 11:02:27 -05:00 (Migrated from github.com)

A Coverity scan on my project, when including DTL, reported these errors:

uninit_use_in_call: Using uninitialized value cordinate. Field cordinate.k is uninitialized when calling push_back.

uninit_member: Non-static class member ox is not initialized in this constructor nor in any functions that it calls.

uninit_member: Non-static class member oy is not initialized in this constructor nor in any functions that it calls.

This PR fixes these issues.
Thanks!

A Coverity scan on my project, when including DTL, reported these errors: uninit_use_in_call: Using uninitialized value cordinate. Field cordinate.k is uninitialized when calling push_back. uninit_member: Non-static class member ox is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member oy is not initialized in this constructor nor in any functions that it calls. This PR fixes these issues. Thanks!
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'bobk2824/bugfix-uninitialized-scalar:bobk2824/bugfix-uninitialized-scalar'
git switch 'bobk2824/bugfix-uninitialized-scalar'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'master'
git merge --no-ff 'bobk2824/bugfix-uninitialized-scalar'
git switch 'bobk2824/bugfix-uninitialized-scalar'
git rebase 'master'
git switch 'master'
git merge --ff-only 'bobk2824/bugfix-uninitialized-scalar'
git switch 'bobk2824/bugfix-uninitialized-scalar'
git rebase 'master'
git switch 'master'
git merge --no-ff 'bobk2824/bugfix-uninitialized-scalar'
git switch 'master'
git merge --squash 'bobk2824/bugfix-uninitialized-scalar'
git switch 'master'
git merge --ff-only 'bobk2824/bugfix-uninitialized-scalar'
git switch 'master'
git merge 'bobk2824/bugfix-uninitialized-scalar'
git push origin 'master'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-cubicdaiya/dtl!16
No description provided.