Commit a099f3ae authored by mdm@chromium.org's avatar mdm@chromium.org

Linux: fix an incorrect cast and missing dereference that prevented GNOME 3...

Linux: fix an incorrect cast and missing dereference that prevented GNOME 3 proxy settings from being queried.
This should be merged into both beta and stable.
BUG=91744
Review URL: http://codereview.chromium.org/7621026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97020 0039d316-1c4b-4281-b951-d872f2087c98
parent 9d8fe828
...@@ -557,7 +557,7 @@ GSettings* (*g_settings_new)(const gchar* schema); ...@@ -557,7 +557,7 @@ GSettings* (*g_settings_new)(const gchar* schema);
bool SchemaExists(const char* schema_name) { bool SchemaExists(const char* schema_name) {
const gchar* const* schemas = g_settings_list_schemas(); const gchar* const* schemas = g_settings_list_schemas();
while (*schemas) { while (*schemas) {
if (strcmp(schema_name, reinterpret_cast<const char*>(schemas)) == 0) if (strcmp(schema_name, static_cast<const char*>(*schemas)) == 0)
return true; return true;
schemas++; schemas++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment