HP Code Advisor Diagnostics Reference Guide (5900-1865, July 2011)

Example:
#include <stdio.h>
struct S { int v; int c;};
int foo2(int n)
{
struct S var;
for (int i=10; i<n; i++) {
var.v = i;
}
var.c = 5;
printf ("%d\n",var.v);
return var.c;
}
int main()
{
foo2(5);
return 0;
}
Action:
Ensure that all elements or fields of an array or struct are unconditionally initialized prior to accessing
them.
Reference:
78 Diagnostics Details