2008-05-06 Anders Carlsson <andersca@apple.com>
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 May 2008 20:47:58 +0000 (20:47 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 May 2008 20:47:58 +0000 (20:47 +0000)
        Reviewed by Darin.

        Initialize numArchs to 0.

        * Plugins/WebBasePluginPackage.m:
        (-[WebBasePluginPackage isNativeLibraryData:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32919 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/mac/ChangeLog
WebKit/mac/Plugins/WebBasePluginPackage.m

index 47f9fef..0e6a435 100644 (file)
@@ -2,6 +2,15 @@
 
         Reviewed by Darin.
 
+        Initialize numArchs to 0.
+        
+        * Plugins/WebBasePluginPackage.m:
+        (-[WebBasePluginPackage isNativeLibraryData:]):
+
+2008-05-06  Anders Carlsson  <andersca@apple.com>
+
+        Reviewed by Darin.
+
         Add implementation of NPN_PopUpContextMenu.
         
         * Plugins/WebBaseNetscapePluginView.mm:
index 8536c56..4346cc4 100644 (file)
@@ -411,7 +411,7 @@ static inline void swapIntsInHeader(uint8_t* bytes, unsigned length)
     Vector<uint8_t, 512> bytes([data length]);
     memcpy(bytes.data(), [data bytes], bytes.size());
     
-    unsigned numArchs;
+    unsigned numArchs = 0;
     struct fat_arch singleArch = { 0, 0, 0, 0, 0 };
     struct fat_arch* archs = 0;