fix 317589 mail body containing ++ produces error message with gnome, patch by brian.lu@sun.com, r=chpe@gnome.org, sr=cbiesinger
git-svn-id: svn://10.0.0.236/trunk@227500 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -203,6 +203,7 @@ static gchar* getAppForScheme(const nsACString& aProtocolScheme)
|
||||
if (!gconfLib)
|
||||
return nsnull;
|
||||
|
||||
GError *error = nsnull;
|
||||
GConfClient *client = _gconf_client_get_default();
|
||||
NS_ASSERTION(client, "no gconf client");
|
||||
|
||||
@@ -210,9 +211,12 @@ static gchar* getAppForScheme(const nsACString& aProtocolScheme)
|
||||
aProtocolScheme +
|
||||
NS_LITERAL_CSTRING("/command"));
|
||||
|
||||
gchar *app = _gconf_client_get_string(client, gconfPath.get(), NULL);
|
||||
gchar *app = _gconf_client_get_string(client, gconfPath.get(), &error);
|
||||
g_object_unref(G_OBJECT(client));
|
||||
|
||||
if (error)
|
||||
g_error_free(error);
|
||||
|
||||
return app;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user