summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-02-28 22:23:05 +0100
committerNicky <nicky.dasmijn@gmail.com>2022-02-28 22:23:05 +0100
commit69065824014ce0ac0981b5fac4dfe4a4d05ad7b4 (patch)
tree9cf6816d45336aef05d3eedc302086da669af343 /indra
parent35cec6e3ad5ba4fceea8c8caef69c28155e0fcc4 (diff)
Calling a method on a pointer that is 100% certain to be inalid is a
really bad idea ...
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewertexturelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp
index 37344056e1..4709094591 100644
--- a/indra/newview/llviewertexturelist.cpp
+++ b/indra/newview/llviewertexturelist.cpp
@@ -1263,7 +1263,7 @@ BOOL LLViewerTextureList::createUploadFile(const std::string& filename,
LLPointer<LLImageFormatted> image = LLImageFormatted::createFromType(codec);
if (image.isNull())
{
- image->setLastError("Couldn't open the image to be uploaded.");
+ LL_WARNS() << "Couldn't open the image to be uploaded." << LL_ENDL;
return FALSE;
}
if (!image->load(filename))