# HG changeset patch # User Daniel Atallah # Date 1127666729 0 # Node ID 603a0e626332a6eebb0741c52a0d30eee48c4c43 # Parent 7897207b522d0b40f673f35a3f21604035b7edb6 [gaim-migrate @ 13834] Make sure that we have a reason. committer: Tailor Script diff -r 7897207b522d -r 603a0e626332 src/protocols/oscar/oscar.c --- 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(