diff options
author | James Cook <james@lindenlab.com> | 2007-04-07 03:11:14 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2007-04-07 03:11:14 +0000 |
commit | bfb21255e3bbab36083e9410071dcde6cba8c85a (patch) | |
tree | 746ca22bff35b0b6ad5e163e2a014512f4b33a61 /indra/llimage/llimagedxt.cpp | |
parent | e1e6ab329fdf6562c153b7da8ab7c71f6dd860a3 (diff) |
Fixed Mac deployment compiler warning (uninitialized memory read, but in unused code). Reviewed with Steve long ago.
Diffstat (limited to 'indra/llimage/llimagedxt.cpp')
-rw-r--r-- | indra/llimage/llimagedxt.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llimage/llimagedxt.cpp b/indra/llimage/llimagedxt.cpp index 1b6ce65274..f47dd29930 100644 --- a/indra/llimage/llimagedxt.cpp +++ b/indra/llimage/llimagedxt.cpp @@ -276,7 +276,10 @@ BOOL LLImageDXT::getMipData(LLPointer<LLImageRaw>& raw, S32 discard) llerrs << "Request for invalid discard level" << llendl; } U8* data = getData() + getMipOffset(discard); - S32 width, height; + // I'm not sure these are the correct initial values for height and width, + // but previously they were being used uninitialized. JC + S32 width = raw->getWidth(); + S32 height = raw->getHeight(); calcDiscardWidthHeight(discard, mFileFormat, width, height); raw = new LLImageRaw(data, width, height, getComponents()); return TRUE; |