Bug 886184: Initialize variable 'usage' in DOMStorageDBThread.cpp, to fix -Wsometimes-uninitialized build warning. r=ehsan

This commit is contained in:
Honza Bambas 2013-07-23 13:24:49 -07:00
parent 42e6c4c435
commit 474c432dc2

View File

@ -855,7 +855,7 @@ DOMStorageDBThread::DBOperation::Perform(DOMStorageDBThread* aThread)
rv = stmt->ExecuteStep(&exists);
NS_ENSURE_SUCCESS(rv, rv);
int64_t usage;
int64_t usage = 0;
if (exists) {
rv = stmt->GetInt64(0, &usage);
NS_ENSURE_SUCCESS(rv, rv);