changeset 18751:0580b246b2c5

Fix a stupid crash (that I introduced) that occurs when parsing gmail notifications. Fixes #2323
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 30 Jul 2007 22:36:20 +0000
parents 676123114c9c
children 02529af24ae2
files libpurple/protocols/jabber/google.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c	Mon Jul 30 19:07:58 2007 +0000
+++ b/libpurple/protocols/jabber/google.c	Mon Jul 30 22:36:20 2007 +0000
@@ -119,8 +119,8 @@
 	g_free(to_name);
 	g_free(tos);
 	g_free(froms);
-	for (; i >= 0; i--)
-		g_free(subjects[i]);
+	for (; i > 0; i--)
+		g_free(subjects[i - 1]);
 	g_free(subjects);
 	g_free(urls);