This query finds variables that are used before they are initialized. Values of uninitialized variables are undefined, as not all compilers zero out memory, especially when optimizations are enabled or the compiler is not compliant with the latest language standards.

Initialize the variable before accessing it.

  • C++ reference: uninitialized variables.