logoalt Hacker News

feelameeyesterday at 9:09 AM1 replyview on HN

uninitialized values are not the source of bugs. This is a good way to find logic errors in code (e.g. using sanitizer)


Replies

jb1991yesterday at 7:24 PM

"bug" can refer to many categories of problems, including logic errors. I've certainly seen uninitialized variables be a source of bugs. Stackoverflow for example is full of discussions about debugging problems caused by uninitialized variables, and the word "bug" is very often used in those contexts.

What do you mean it is not a source of bugs?

show 2 replies