3 ms·
I'm sorry, who (or what) is DJB and what codebase are you referring to exactly? Also, what is the bug there? Can anyone educate me?
by jgalvez 18y ago
I'm sorry, who (or what) is DJB and what codebase are you referring to exactly? Also, what is the bug there? Can anyone educate me?
- csl 18y agoDaniel Bernstein (qmail, djbdns, etc): http://cr.yp.to http://cr.yp.to The bug searched for is using the assignment operator = instead of the equality operator ==.
- jgalvez 18y agoHa, thanks! I didn't notice '=' was wrong there, part of me thinks that can actually be common in C (assigning the result of a condition to be further used within the block).
- ConradHex 18y agoIt can be intentional if the right side is a function call. But something like: if (errno = 0) { blah(); } is almost certainly a bug.