changeset 30426:c60c9c95bb00

These are dead increments.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 22 Aug 2010 06:16:37 +0000
parents f60a1a80036f
children 8490c8eb4aa8
files libpurple/desktopitem.c libpurple/protocols/qq/qq.c libpurple/util.c pidgin/gtksession.c
diffstat 4 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/desktopitem.c	Sun Aug 22 06:15:30 2010 +0000
+++ b/libpurple/desktopitem.c	Sun Aug 22 06:16:37 2010 +0000
@@ -330,7 +330,7 @@
 	if (c == EOF && pos == 0)
 		return NULL;
 
-	buf[pos++] = '\0';
+	buf[pos] = '\0';
 
 	return buf;
 }
--- a/libpurple/protocols/qq/qq.c	Sun Aug 22 06:15:30 2010 +0000
+++ b/libpurple/protocols/qq/qq.c	Sun Aug 22 06:16:37 2010 +0000
@@ -381,11 +381,10 @@
 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);
--- a/libpurple/util.c	Sun Aug 22 06:15:30 2010 +0000
+++ b/libpurple/util.c	Sun Aug 22 06:16:37 2010 +0000
@@ -3115,7 +3115,7 @@
 		if (text[i] != thechar)
 			text[j++] = text[i];
 
-	text[j++] = '\0';
+	text[j] = '\0';
 }
 
 void
--- a/pidgin/gtksession.c	Sun Aug 22 06:15:30 2010 +0000
+++ b/pidgin/gtksession.c	Sun Aug 22 06:16:37 2010 +0000
@@ -166,7 +166,7 @@
 	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;
 }