[EFL] Unreviewed build fix with ENABLE_NETSCAPE_PLUGIN_API after r121467.
authorrakuco@webkit.org <rakuco@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2012 14:20:03 +0000 (14:20 +0000)
committerrakuco@webkit.org <rakuco@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2012 14:20:03 +0000 (14:20 +0000)
* plugins/efl/PluginPackageEfl.cpp:
(WebCore::PluginPackage::load): Move the declaration of `err'
before the first `goto' statement.

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

Source/WebCore/ChangeLog
Source/WebCore/plugins/efl/PluginPackageEfl.cpp

index cc0c957..49fc3f8 100644 (file)
@@ -1,3 +1,11 @@
+2012-07-02  Raphael Kubo da Costa  <rakuco@webkit.org>
+
+        [EFL] Unreviewed build fix with ENABLE_NETSCAPE_PLUGIN_API after r121467.
+
+        * plugins/efl/PluginPackageEfl.cpp:
+        (WebCore::PluginPackage::load): Move the declaration of `err'
+        before the first `goto' statement.
+
 2012-07-02  Alexei Filippov  <alexeif@chromium.org>
 
         Web Inspector: replace recursion with a stack in DOM nodes snapshot traversal.
index 5753ed7..35b1e7d 100644 (file)
@@ -129,6 +129,8 @@ bool PluginPackage::load()
 
     m_isLoaded = true;
 
+    NPError err;
+
     NP_InitializeFuncPtr initialize = reinterpret_cast<NP_InitializeFuncPtr>(eina_module_symbol_get(m_module, "NP_Initialize"));
     if (!initialize) {
         EINA_LOG_ERR("Could not get symbol NP_Initialize");
@@ -147,9 +149,9 @@ bool PluginPackage::load()
     initializeBrowserFuncs();
 
 #if defined(XP_UNIX)
-    NPError err = initialize(&m_browserFuncs, &m_pluginFuncs);
+    err = initialize(&m_browserFuncs, &m_pluginFuncs);
 #else
-    NPError err = initialize(&m_browserFuncs);
+    err = initialize(&m_browserFuncs);
 #endif
     if (err != NPERR_NO_ERROR)
         goto abort;