From 3ffb9052c30cb07f231c2b8c59bde24e63264eb7 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Tue, 10 Aug 2021 06:58:34 -0400
Subject: [PATCH] Initialize member pointer to null by default

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

diff --git a/indra/llprimitive/llmodel.h b/indra/llprimitive/llmodel.h
index 00273ed3a8e..501cac622ec 100644
--- a/indra/llprimitive/llmodel.h
+++ b/indra/llprimitive/llmodel.h
@@ -327,7 +327,7 @@ class LLImportMaterial final : public LLModelMaterialBase
 protected:
     
     LLUUID		mDiffuseMapID;
-    void*			mOpaqueData;	// allow refs to viewer/platform-specific structs for each material
+    void*		mOpaqueData = nullptr;	// allow refs to viewer/platform-specific structs for each material
     // currently only stores an LLPointer< LLViewerFetchedTexture > > to
     // maintain refs to textures associated with each material for free
     // ref counting.
-- 
GitLab