Bug 1313907 - Remove a warning in IDB ActorParent.cpp, r=me
authorAndrea Marchesini <amarchesini@mozilla.com>
Sun, 30 Oct 2016 10:02:26 +0100
changeset 320204 fdea89bad933375fd650bc2cd8fee6dc860de9bb
parent 320203 bed4b65bc2361fde5a43f12131e88b1883a00be5
child 320205 e3279760cd977aac30bd9e8032d3ee71f55d2a67
child 320216 bc0cbdabb7512afce5179229920b40af4cbf2acf
push id20751
push userphilringnalda@gmail.com
push dateSun, 30 Oct 2016 18:06:35 +0000
treeherderfx-team@e3279760cd97 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1313907
milestone52.0a1
Bug 1313907 - Remove a warning in IDB ActorParent.cpp, r=me
dom/indexedDB/ActorsParent.cpp
--- a/dom/indexedDB/ActorsParent.cpp
+++ b/dom/indexedDB/ActorsParent.cpp
@@ -19728,17 +19728,17 @@ DatabaseOperationBase::IndexDataValuesFr
   }
 
   for (uint32_t idxIndex = 0; idxIndex < count; idxIndex++) {
     const IndexUpdateInfo& updateInfo = aUpdateInfos[idxIndex];
     const int64_t& indexId = updateInfo.indexId();
     const Key& key = updateInfo.value();
     const Key& sortKey = updateInfo.localizedValue();
 
-    bool unique;
+    bool unique = false;
     MOZ_ALWAYS_TRUE(aUniqueIndexTable.Get(indexId, &unique));
 
     IndexDataValue idv(indexId, unique, key, sortKey);
 
     MOZ_ALWAYS_TRUE(
       aIndexValues.InsertElementSorted(idv, fallible));
   }