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

Initialize d_sender_id to some sentinel "invalid" value in BaseClassUnique #41

Closed
rpavlik opened this issue Feb 27, 2015 · 1 comment
Closed

Comments

@rpavlik
Copy link
Member

rpavlik commented Feb 27, 2015

Would make it easier and more reliable to detect ordering issues (that is, calling things that use it before calling vrpn_BaseClass::init) - right now it's a read of an uninitialized location which is undefined behavior - so it might give you garbage, or your whole code might get optimized away.

@russell-taylor
Copy link
Contributor

Added in c5429b9

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

No branches or pull requests

2 participants