im.pidgin.pidgin: c009217378fc8c5b836113654e0e7642ee1ed345

resiak at soc.pidgin.im resiak at soc.pidgin.im
Sun Nov 11 09:21:12 EST 2007


-----------------------------------------------------------------
Revision: c009217378fc8c5b836113654e0e7642ee1ed345
Ancestor: 1393fe1c1af12c0ab59459204a99b20c82c4e4e4
Author: resiak at soc.pidgin.im
Date: 2007-11-11T14:10:06
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/sametime/sametime.c

ChangeLog: 

Use distinct variables for the result of g_strerror (which is const) and a
g_strdup_printf (which is not), squashing a warning in sametime.

-------------- next part --------------
============================================================
--- libpurple/protocols/sametime/sametime.c	e836ce01600d12d08641d308c8b7e816e46e707a
+++ libpurple/protocols/sametime/sametime.c	8be1c118d0eaa840790d0db3715f47f3b98a569c
@@ -1702,11 +1702,12 @@ static void read_cb(gpointer data, gint 
     purple_connection_error(pd->gc, _("Connection reset"));
 
   } else if(ret < 0) {
-    char *msg = g_strerror(err);
+    const gchar *err_str = g_strerror(err);
+    char *msg = NULL;
 
-    DEBUG_INFO("error in read callback: %s\n", msg);
+    DEBUG_INFO("error in read callback: %s\n", err_str);
 
-    msg = g_strdup_printf(_("Error reading from socket: %s"), msg);
+    msg = g_strdup_printf(_("Error reading from socket: %s"), err_str);
     purple_connection_error(pd->gc, msg);
     g_free(msg);
   }


More information about the Commits mailing list