Mercurial > pidgin.yaz
diff pidgin/gtkaccount.c @ 24157:9c8d73b0f27c
Fix NULL pointer deref. Fixes #7258. Thanks to "jonassa" for noticing.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 02 Oct 2008 01:40:23 +0000 |
parents | b682a74a2c69 |
children | f108d707b6e1 |
line wrap: on
line diff
--- a/pidgin/gtkaccount.c Thu Oct 02 01:29:53 2008 +0000 +++ b/pidgin/gtkaccount.c Thu Oct 02 01:40:23 2008 +0000 @@ -451,7 +451,8 @@ if (dialog->account != NULL) username = g_strdup(purple_account_get_username(dialog->account)); - if (!username && PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(dialog->prpl_info, get_account_text_table)) { + if (!username && dialog->prpl_info + && PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(dialog->prpl_info, get_account_text_table)) { GdkColor color = {0, 34952, 35466, 34181}; GHashTable *table; const char *label;