Viewing profile — WaltSellers
WaltSellers
HN member- Joined
- Thu, Feb 27, 2014, 3:19 AM UTC
- HN karma
- 5
- Public activity
- 5 items
- HN profile
- View on Hacker News ↗
About WaltSellers
No profile information was provided.
Recent public activity
-
comment
Comment #7310536
Was there a more fundamental problem in the assumptions of the code? The state of the operation is "success" (err==zero) until some step changes the state to "failure" (non-zero). …
-
comment
Comment #7310313
From a different point of view, part of the problem is the undefined state of the code at the "fail" label. Execution will arrive there somehow, but the 'how' is unclear. The word …
-
comment
Comment #7310247
What about these? - don't leave local variables uninitialized. - don't try to hand-optimize lines unnecessarily. - don't mix assignments into boolean expressions. (Which is really …
-
comment
Comment #7310220
At that point the variable 'err' is still zero (noErr). So the function returns noErr, the caller thinks everything is good, and the communication is allowed.
-
comment
Comment #7310179
Even if there were braces, the bug would still exist if the extra goto was outside the braces. It might be more noticeable, but then, the original bug existed because no one notice…