The variable ' power' was used uninitialized in case -bookVariation was
set to 0, which can be an error even if it was only multiplied by zero.
entries[count++] = entry;
}
if(appData.bookStrength != 50) { // transform weights
- double power, maxWeight = 0.0;
+ double power = 0, maxWeight = 0.0;
if(appData.bookStrength) power = (100.-appData.bookStrength)/appData.bookStrength;
for(i=0; i<count; i++) if(entries[i].weight > maxWeight) maxWeight = entries[i].weight;
for(i=0; i<count; i++){