summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-05-11 14:23:15 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-05-11 14:23:15 -0600
commitd696977c705929b944359f4a5bbb7501645f62bc (patch)
tree124b4b27133045494e4fb128d1b2f2a54622a870 /indra
parent39f033a013278206fa6a93273965bd11066ee492 (diff)
fix a crash
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/llmemory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp
index 2d190fe660..4143f630c8 100644
--- a/indra/llcommon/llmemory.cpp
+++ b/indra/llcommon/llmemory.cpp
@@ -1629,6 +1629,10 @@ void LLPrivateMemoryPool::addToHashTable(LLMemoryChunk* chunk)
{
mChunkHashList[start_key] = chunk ;
}
+ if(start_key == end_key)
+ {
+ return ; //done
+ }
if(!need_rehash)
{