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 305038 feb851eb3003b58f5210692376ea570e6b8d0654
parent 305037 edee98fdc88fb3b0f9f5bea0719dbbfab0788fbd
child 305039 b6ab1c8708cf7ef3f6384ee584645029722deece
push id30450
push usercbook@mozilla.com
push dateFri, 15 Jul 2016 14:15:45 +0000
treeherdermozilla-central@2f9e69c982f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyzenevich
bugs1286612
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;