From 1ddfc1f409cf30911414bc1dcada23d7ba67a372 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Mon, 4 Jun 2007 23:07:28 +0000 Subject: [PATCH] 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 --- mozilla/uriloader/exthandler/unix/nsGNOMERegistry.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mozilla/uriloader/exthandler/unix/nsGNOMERegistry.cpp b/mozilla/uriloader/exthandler/unix/nsGNOMERegistry.cpp index 85ed2b7a6cb..b189a319e2a 100644 --- a/mozilla/uriloader/exthandler/unix/nsGNOMERegistry.cpp +++ b/mozilla/uriloader/exthandler/unix/nsGNOMERegistry.cpp @@ -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; }