Bug 727370 - Fix typo that crept in while rebasing. r=benjamin
authorGian-Carlo Pascutto <gpascutto@mozilla.com>
Fri, 28 Sep 2012 19:00:20 +0200
changeset 114813 51644b3ee33365d9464c1ca058d3773f2e7f6889
parent 114812 ec0dcd401a3ff735815f4209a7ba26d57bcf87a1
child 114814 e7381ac9e30a172cc129070e57bcca3ff59a8cd5
push id1708
push userakeybl@mozilla.com
push dateMon, 19 Nov 2012 21:10:21 +0000
treeherdermozilla-beta@27b14fe50103 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbenjamin
bugs727370
milestone18.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 727370 - Fix typo that crept in while rebasing. r=benjamin
toolkit/components/url-classifier/HashStore.cpp
--- a/toolkit/components/url-classifier/HashStore.cpp
+++ b/toolkit/components/url-classifier/HashStore.cpp
@@ -319,17 +319,17 @@ HashStore::CalculateChecksum(nsAutoCStri
   rv = hash->Init(nsICryptoHash::MD5);
   NS_ENSURE_SUCCESS(rv, rv);
 
   if (!aChecksumPresent) {
     // Hash entire file
     rv = hash->UpdateFromStream(mInputStream, UINT32_MAX);
   } else {
     // Hash everything but last checksum bytes
-    rv = hash->UpdateFromStream(mInputStream, fileSize-CHECKSUM_SIZE);
+    rv = hash->UpdateFromStream(mInputStream, aSize-CHECKSUM_SIZE);
   }
   NS_ENSURE_SUCCESS(rv, rv);
 
   rv = hash->Finish(false, aChecksum);
   NS_ENSURE_SUCCESS(rv, rv);
 
   return NS_OK;
 }