CID 691 : parameter not used in fprintf, but still evaluated, leading to acces out of bounds of array.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38044 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues
2010-08-12 12:09:05 +00:00
parent b9eef2a018
commit 99002a3991
+6 -2
View File
@@ -2036,8 +2036,12 @@ DCRaw::_ConvertToRGB()
}
if (1/*verbose*/) {
fprintf(stderr, fRawColor ? "Building histograms...\n"
: "Converting to %s colorspace...\n", name[fOutputColor - 1]);
if (fRawColor)
fprintf(stderr, "Building histograms...\n");
else {
fprintf(stderr, "Converting to %s colorspace...\n",
name[fOutputColor - 1]);
}
}
ushort* img = fImageData[0];