From f3c7e89ddb4196c66d87af3772f7dc4cabfffd3d Mon Sep 17 00:00:00 2001 From: Andi-Bogdan Postelnicu Date: Mon, 21 Mar 2016 15:17:04 +0200 Subject: [PATCH] Bug 1258339 - check return value of GetFileSize. r=janv MozReview-Commit-ID: Fy0jMfVpcCN --HG-- extra : rebase_source : 31ac4fe714aa62a6c5b86438ca3ab983c7d4a6d9 --- dom/indexedDB/ActorsParent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index 185e23c0a399..b1963f909b9d 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -10915,8 +10915,8 @@ UpdateRefcountFunction::Reset() if (aFileManager->EnforcingQuota()) { rv = file->GetFileSize(&fileSize); - if (NS_WARN_IF(!file)) { - return NS_ERROR_FAILURE; + if (NS_WARN_IF(NS_FAILED(rv))) { + return rv; } }