From ebf35d51b14f224c36a19a453a20885e667f6bec Mon Sep 17 00:00:00 2001
From: Richard Linden <none@none>
Date: Thu, 6 Jun 2013 21:26:57 -0700
Subject: [PATCH] SH-4232 FIX: Interesting: Viewer Crash on Login

---
 indra/llcommon/lltrace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llcommon/lltrace.h b/indra/llcommon/lltrace.h
index c20e836f775..cfe1273b4b2 100644
--- a/indra/llcommon/lltrace.h
+++ b/indra/llcommon/lltrace.h
@@ -169,7 +169,7 @@ class AccumulatorBuffer : public LLRefCount
 	LL_FORCE_INLINE static ACCUMULATOR* getPrimaryStorage() 
 	{ 
 		ACCUMULATOR* accumulator = LLThreadLocalSingletonPointer<ACCUMULATOR>::getInstance();
-		return accumulator ? accumulator : sDefaultBuffer->mStorage;
+		return accumulator ? accumulator : getDefaultBuffer()->mStorage;
 	}
 
 	// NOTE: this is not thread-safe.  We assume that slots are reserved in the main thread before any child threads are spawned
-- 
GitLab