Today there was a case when analyzing the software (test.c) by Clang Staic Analyzer (CSA).
The following code contains two BUG, first bug found and second bug was miss.
int y; //1st bug
int i; //2nd bug
printf (“%d”, y); //1st bug
printf (“%d”, i); //2nd bug
Analysis using CSA (by “scan-build-6.0 gcc test.c”).
What is the problem?
How to fix it?