-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Loops try to clean up uninitialized variables #787
Comments
Oh, that's really awful. We zero out uninitialized local variables but we don't zero ones with initializers because we know that they will be initialized. However, if we break inside the initializer expression it won't get initialized or zeroed. Argh. |
keeperofdakeys
pushed a commit
to keeperofdakeys/rust
that referenced
this issue
Dec 12, 2017
Fix kqueue filter consts type on NetBSD [WAS: Provide EV_SET] Using BSD kqueue's `kevent` structure is tedious, because some BSD variants define the structure slightly differently. This forces user's code to differentiate between BSD variants and initialize `kevent` accordingly, which is annoying and error-prone. For an example, refer to [MIO](/~https://github.com/carllerche/mio/blob/master/src/sys/unix/kqueue.rs#L38). This is an attempt to fix it - provide a ctor function with the same signature across BSD variants. Is an `impl` piece for a C structure allowed in libc? **edit:** I noticed the `kevent` function has a similar problem, maybe I should include a fix for that too... **edit:** ^ Done
pdietl
pushed a commit
to pdietl/rust
that referenced
this issue
Apr 23, 2020
Add a basic style guide.
ZuseZ4
pushed a commit
to EnzymeAD/rust
that referenced
this issue
Mar 7, 2023
* Fast loop affine integer calculation * fix for step
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Under valgrind results in:
The text was updated successfully, but these errors were encountered: