Main Content
Non-initialized variable
Variable other than local variable is not initialized before being read
Description
This check occurs when you read variables that are not local (global or static variables). It determines whether the variable being read is initialized.
By default, Polyspace® considers that global variables are initialized. The verification checks global variables only if you prevent this default initialization. See also Code Prover Assumptions About Global Variable Initialization.
For more examples of initialization of complex data types, see the equivalent checker for
local variables, Non-initialized local variable
.
Diagnosing This Check
Examples
Check Information
Group: Data flow |
Language: C | C++ |
Acronym: NIV |