An uninitialized object has not been given a valid initial value. In C, using one can cause incorrect results, crashes, data loss, or exposure of sensitive information. section 15.0
Reduce the risk by initializing objects before use:
- Initialize every block-scope variable. section 15.0
- Use calloc instead of malloc when suitable, and provide an initialization function for more complicated dynamically allocated structures. section 15.0
