pidgin: 9c4dea3b: These are dead increments.

qulogic at pidgin.im qulogic at pidgin.im
Mon Aug 23 01:32:07 EDT 2010


----------------------------------------------------------------------
Revision: 9c4dea3b041aaf2258a09ffc68efd86acf274c2e
Parent:   9e8ab817c1a2777d5a9a375889ea178b5b2c3500
Author:   qulogic at pidgin.im
Date:     08/22/10 02:16:37
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9c4dea3b041aaf2258a09ffc68efd86acf274c2e

Changelog: 

These are dead increments.

Changes against parent 9e8ab817c1a2777d5a9a375889ea178b5b2c3500

  patched  libpurple/desktopitem.c
  patched  libpurple/protocols/qq/qq.c
  patched  libpurple/util.c
  patched  pidgin/gtksession.c

-------------- next part --------------
============================================================
--- libpurple/util.c	15a81fd6f0c41d66d2a0a7199314d1920fa4d347
+++ libpurple/util.c	92d40a745831e44e540c53c485b1c175d973da5e
@@ -3115,7 +3115,7 @@ purple_str_strip_char(char *text, char t
 		if (text[i] != thechar)
 			text[j++] = text[i];
 
-	text[j++] = '\0';
+	text[j] = '\0';
 }
 
 void
============================================================
--- libpurple/desktopitem.c	2964a4ecc65311d5eabd71cd951adf8492694944
+++ libpurple/desktopitem.c	2e0881fdf16a78945077be08c1e4164a0bf634f7
@@ -330,7 +330,7 @@ my_fgets (char *buf, gsize bufsize, FILE
 	if (c == EOF && pos == 0)
 		return NULL;
 
-	buf[pos++] = '\0';
+	buf[pos] = '\0';
 
 	return buf;
 }
============================================================
--- pidgin/gtksession.c	b0bc3e7ab37ee7f258c515e0320cda2264f2a4e4
+++ pidgin/gtksession.c	c554eb95f25715403e48c1f6a55457f3f162c492
@@ -166,7 +166,7 @@ static gchar **session_make_command(gcha
 	ret[j++] = g_strdup("--display");
 	ret[j++] = g_strdup((gchar *)gdk_display_get_name(gdk_display_get_default()));
 
-	ret[j++] = NULL;
+	ret[j] = NULL;
 
 	return ret;
 }
============================================================
--- libpurple/protocols/qq/qq.c	b1ac2a0a8f80d6fbe9a44207b8580a5a6fd17354
+++ libpurple/protocols/qq/qq.c	eb0eac3d583fae3befa15b4a160a33c9f755eb29
@@ -381,11 +381,10 @@ static const char *qq_list_emblem(Purple
 static const char *qq_list_emblem(PurpleBuddy *b)
 {
 	PurpleAccount *account;
-	PurpleConnection *gc;
 	qq_buddy_data *buddy;
 
 	if (!b || !(account = purple_buddy_get_account(b)) ||
-		!(gc = purple_account_get_connection(account)))
+		!purple_account_get_connection(account))
 		return NULL;
 
 	buddy = purple_buddy_get_protocol_data(b);


More information about the Commits mailing list