Bug 1287756 - prevent assignment in assert expression for |mCurrentMaintenance|.r=janv
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Tue, 19 Jul 2016 21:18:03 +0300
changeset 389899 99837fd9225866b6416caa2f7cd97e9632bad0ea
parent 389898 4dd2466573eceb92c70f8436ad54bb400ae4110b
child 389900 a10527539339290247c0f7c9dc41896a5b0dd67e
push id23555
push userg.maone@informaction.com
push dateWed, 20 Jul 2016 09:15:43 +0000
reviewersjanv
bugs1287756
milestone50.0a1
Bug 1287756 - prevent assignment in assert expression for |mCurrentMaintenance|.r=janv MozReview-Commit-ID: 8p72mQrKmWx
dom/indexedDB/ActorsParent.cpp
--- a/dom/indexedDB/ActorsParent.cpp
+++ b/dom/indexedDB/ActorsParent.cpp
@@ -8941,17 +8941,17 @@ public:
     return result.forget();
   }
 
   void
   NoteFinishedMaintenance(Maintenance* aMaintenance)
   {
     AssertIsOnBackgroundThread();
     MOZ_ASSERT(aMaintenance);
-    MOZ_ASSERT(mCurrentMaintenance = aMaintenance);
+    MOZ_ASSERT(mCurrentMaintenance == aMaintenance);
 
     mCurrentMaintenance = nullptr;
     ProcessMaintenanceQueue();
   }
 
   nsThreadPool*
   GetOrCreateThreadPool();