Skip to content

Always initialize StartingValues#1

Open
MichaelChirico wants to merge 1 commit into
JasjeetSekhon:masterfrom
MichaelChirico:patch-1
Open

Always initialize StartingValues#1
MichaelChirico wants to merge 1 commit into
JasjeetSekhon:masterfrom
MichaelChirico:patch-1

Conversation

@MichaelChirico

Copy link
Copy Markdown

This is flagged by -Wsometimes-uninitialized.

Below, MainStructure->StartingValues=StartingValues will be assigning an uninitialized value if the input ever receives nStartingValues==0.

If that's impossible, we should drop the if (nStartingValues > 0) branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant