changeset 20995:87c9d114864b

Fix a warning
author Kevin Stange <kevin@simguy.net>
date Fri, 19 Oct 2007 03:05:58 +0000
parents 1054e35acf65
children ec3736fe2e4e
files libpurple/protocols/myspace/user.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/user.c	Fri Oct 19 03:03:45 2007 +0000
+++ b/libpurple/protocols/myspace/user.c	Fri Oct 19 03:05:58 2007 +0000
@@ -203,6 +203,8 @@
 		/* Ignore because PurpleBuddy knows this already */
 		g_free(value_str);
 	} else if (g_str_equal(key_str, "ImageURL") || g_str_equal(key_str, "AvatarURL")) {
+		const gchar *previous_url;
+
 		if (user->temporary_user) {
 			/* This user will be destroyed soon; don't try to look up its image or avatar, 
 			 * since that won't return immediately and we will end up accessing freed data.
@@ -211,8 +213,6 @@
 			return;
 		}
 		
-		const gchar *previous_url;
-
 		g_free(user->image_url);
 
 		user->image_url = value_str;