[libgconf-bridge] * libgconf-bridge/gconf-bridge.c: (error_handler): Safely printf



commit 912c9f1d9d005765966183d5c88e80f17b907d54
Author: Christian Persch <chpe gnome org>
Date:   Thu May 7 17:29:27 2009 +0200

    	* libgconf-bridge/gconf-bridge.c: (error_handler): Safely printf
    	strings. Bug #581750.
---
 ChangeLog                      |    5 +++++
 libgconf-bridge/gconf-bridge.c |    7 ++-----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ae5a596..6a5a6d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-07  Christian Persch  <chpe gnome org>
+
+	* libgconf-bridge/gconf-bridge.c: (error_handler): Safely printf
+	strings. Bug #581750.
+
 2009-02-04  Bastien Nocera  <hadess hadess net>
 
 	* libgconf-bridge/gconf-bridge.c:
diff --git a/libgconf-bridge/gconf-bridge.c b/libgconf-bridge/gconf-bridge.c
index 3d88856..c2b4ffc 100644
--- a/libgconf-bridge/gconf-bridge.c
+++ b/libgconf-bridge/gconf-bridge.c
@@ -1215,16 +1215,13 @@ error_handler (GConfClient *client,
         g_warning ("GConf error:\n  %s", error->message);
 
         if (!shown_dialog) {
-                char *message;
                 GtkWidget *dlg;
 
-                message = g_strdup_printf (_("GConf error: %s"),
-                                           error->message);
                 dlg = gtk_message_dialog_new (NULL, 0,
                                               GTK_MESSAGE_ERROR,
                                               GTK_BUTTONS_OK,
-                                              message);
-                g_free (message);
+                                              _("GConf error: %s"),
+                                              error->message);
 
                 gtk_message_dialog_format_secondary_text
                         (GTK_MESSAGE_DIALOG (dlg),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]