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

cm: Properly initialize box_model #96

Closed
wants to merge 1 commit into from
Closed

Conversation

DolceTriade
Copy link
Contributor

If we don't initialize it, it holds garbage values for some of the
fields which cause crashes when accessed.

Fixes #94

If we don't initialize it, it holds garbage values for some of the
fields which cause crashes when accessed.

Fixes #94
@illwieckz
Copy link
Member

Thanks! I'll try it when I'm at home!

@illwieckz
Copy link
Member

bad news, it's not enough to fix the bug on my end. 😕

@slipher
Copy link
Member

slipher commented Apr 18, 2018

This commit is a no-op. Global variables are default-initialized (to all 0 for a simple struct) by default.

@Viech
Copy link
Member

Viech commented Apr 20, 2018

Could this not depend on the compiler and optimization level?

@DolceTriade
Copy link
Contributor Author

No, silpher is correct. This commit does nothing. Turns out I was hasty and this bug doesn't occur 100% of the time.

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.

None yet

4 participants