[GTK] Return m_inspectorFilesPath if it is not null
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Mar 2013 00:27:51 +0000 (00:27 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Mar 2013 00:27:51 +0000 (00:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111633

Patch by Sudarsana Nagineni <sudarsana.nagineni@intel.com> on 2013-03-06
Reviewed by Martin Robinson.

Added missing return in InspectorClient::inspectorFilesPath().

* WebCoreSupport/InspectorClientGtk.cpp:
(WebKit::InspectorClient::inspectorFilesPath):

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

Source/WebKit/gtk/ChangeLog
Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp

index ea40de9..00f845d 100644 (file)
@@ -1,3 +1,15 @@
+2013-03-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
+
+        [GTK] Return m_inspectorFilesPath if it is not null
+        https://bugs.webkit.org/show_bug.cgi?id=111633
+
+        Reviewed by Martin Robinson.
+
+        Added missing return in InspectorClient::inspectorFilesPath().
+
+        * WebCoreSupport/InspectorClientGtk.cpp:
+        (WebKit::InspectorClient::inspectorFilesPath):
+
 2013-03-06  Dominique Leuenberger  <dimstar@opensuse.org>
 
         Link the webkit_tests to XRENDER_LIBS.
index b129c6f..cf73156 100644 (file)
@@ -160,7 +160,7 @@ bool InspectorClient::sendMessageToFrontend(const String& message)
 const char* InspectorClient::inspectorFilesPath()
 {
     if (m_inspectorFilesPath)
-        m_inspectorFilesPath.get();
+        return m_inspectorFilesPath.get();
 
     const char* environmentPath = getenv("WEBKIT_INSPECTOR_PATH");
     if (environmentPath && g_file_test(environmentPath, G_FILE_TEST_IS_DIR))