changeset 11567:603a0e626332

[gaim-migrate @ 13834] Make sure that we have a reason. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 25 Sep 2005 16:45:29 +0000
parents 7897207b522d
children e36f0f9debb5
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Fri Sep 23 02:39:32 2005 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Sep 25 16:45:29 2005 +0000
@@ -7214,7 +7214,7 @@
 	char *msg;
 	GaimAccount *account = gaim_connection_get_account(gc);
 	gchar *nombre;
-	gchar *reason;
+	gchar *reason = NULL;
 	gchar *dialog_msg;
 	struct name_data *data;
 	GaimBuddy *buddy;
@@ -7235,7 +7235,8 @@
 
 	if (msg != NULL)
 		reason = gaim_plugin_oscar_decode_im_part(account, sn, AIM_CHARSET_CUSTOM, 0x0000, msg, strlen(msg));
-	else
+
+	if (reason == NULL)
 		reason = g_strdup(_("No reason given."));
 
 	dialog_msg = g_strdup_printf(