Bug 1019161 - fix a -Wmaybe-uninitialized build warning in ArchiveRequest.cpp; r=baku
authorNathan Froyd <froydnj@mozilla.com>
Mon, 02 Jun 2014 15:05:38 -0400
changeset 206899 9b1fabd016b5a7b7b50e7e1761417063eef44347
parent 206898 74d53a60db060366d7ef5ba52e48e35967a24a9e
child 206900 a063f04aa7e8aee7a3869cf02e07b7114160fd4d
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1019161
milestone32.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 1019161 - fix a -Wmaybe-uninitialized build warning in ArchiveRequest.cpp; r=baku
dom/archivereader/ArchiveRequest.cpp
--- a/dom/archivereader/ArchiveRequest.cpp
+++ b/dom/archivereader/ArchiveRequest.cpp
@@ -149,19 +149,23 @@ ArchiveRequest::ReaderReady(nsTArray<nsC
     case GetFilenames:
       rv = GetFilenamesResult(cx, result.address(), aFileList);
       break;
 
     case GetFile:
       rv = GetFileResult(cx, &result, aFileList);
       break;
 
-      case GetFiles:
-        rv = GetFilesResult(cx, &result, aFileList);
-        break;
+    case GetFiles:
+      rv = GetFilesResult(cx, &result, aFileList);
+      break;
+
+    default:
+      rv = NS_ERROR_UNEXPECTED;
+      break;
   }
 
   if (NS_FAILED(rv)) {
     NS_WARNING("Get*Result failed!");
   }
 
   if (NS_SUCCEEDED(rv)) {
     FireSuccess(result);