diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp
index a38bfc36003cb25ad63da922190e79ef9985101b..cd4d8d2f873c1bab5c33f1bbd11be8988243bdde 100644
--- a/indra/newview/llselectmgr.cpp
+++ b/indra/newview/llselectmgr.cpp
@@ -5145,7 +5145,8 @@ void LLSelectNode::saveTextureScaleRatios()
 			F32 s,t;
 			const LLTextureEntry* tep = mObject->getTE(i);
 			tep->getScale(&s,&t);
-			U32 s_axis, t_axis;
+			U32 s_axis = 0;
+			U32 t_axis = 0;
 
 			gSelectMgr->getTESTAxes(mObject, i, &s_axis, &t_axis);