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 186593 9b1fabd016b5a7b7b50e7e1761417063eef44347
parent 186592 74d53a60db060366d7ef5ba52e48e35967a24a9e
child 186594 a063f04aa7e8aee7a3869cf02e07b7114160fd4d
push idunknown
push userunknown
push dateunknown
reviewersbaku
bugs1019161
milestone32.0a1
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);