https://bugs.openldap.org/show_bug.cgi?id=10225
--- Comment #2 from yaneurabeya@gmail.com --- If I submitted a patch to you to either call bzero, memset(.., 0, ..) or use the C99 initializer (= { 0 }), would you take it (and which do you prefer)?
I can give you a whole list of possibilities for what could happen (I was being incredibly non-creative with the rationale at this point after 12+ hours of work).. but at the very least having to mute complaints around uninitialized stack memory from clang scan-build, coverity, etc, helps take away time from more pressing issues. At worst, it helps shift the blame off your code on to bad consumers more easily :) -- plus it avoids someone forking/copy-pasting your code and doing something unwise with it because they don't understand what the code did originally. This is not your problem, but.. after having to deal with a lot of stuff like that from less senior engineers or less C/C++ proficient engineers as an OSS integrator... I'm kind of tired of having to field the complaint "the OS did it" when in fact it's broken middleware, etc.