bug 1286612 - Remove unsafe assignment in xpcAccessibleValue::GetMinimumIncrement. r=yzenevich
authorMichael Li <michael.li11702@gmail.com>
Wed, 13 Jul 2016 10:56:00 +0200
changeset 330102 feb851eb3003b58f5210692376ea570e6b8d0654
parent 330101 edee98fdc88fb3b0f9f5bea0719dbbfab0788fbd
child 330103 b6ab1c8708cf7ef3f6384ee584645029722deece
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyzenevich
bugs1286612
milestone50.0a1
bug 1286612 - Remove unsafe assignment in xpcAccessibleValue::GetMinimumIncrement. r=yzenevich
accessible/xpcom/xpcAccessibleValue.cpp
--- a/accessible/xpcom/xpcAccessibleValue.cpp
+++ b/accessible/xpcom/xpcAccessibleValue.cpp
@@ -110,17 +110,17 @@ xpcAccessibleValue::GetMinimumIncrement(
   *aValue = 0;
 
   if (Intl().IsNull())
     return NS_ERROR_FAILURE;
 
   if (Intl().IsAccessible() && Intl().AsAccessible()->IsDefunct())
     return NS_ERROR_FAILURE;
 
-  double value = Intl().AsAccessible()->Step();
+  double value;
   if (Intl().IsAccessible()) {
     value = Intl().AsAccessible()->Step();
   } else { 
     value = Intl().AsProxy()->Step();
   }
 
   if (!IsNaN(value))
     *aValue = value;