Mercurial > pidgin
changeset 26126:23816d2e380f
Silence assertion.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Wed, 25 Feb 2009 07:22:08 +0000 |
parents | a773b465935e |
children | df133a5df391 |
files | libpurple/media.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/media.c Wed Feb 25 04:59:22 2009 +0000 +++ b/libpurple/media.c Wed Feb 25 07:22:08 2009 +0000 @@ -1080,7 +1080,8 @@ purple_media_get_session_names(PurpleMedia *media) { g_return_val_if_fail(PURPLE_IS_MEDIA(media), NULL); - return g_hash_table_get_keys(media->priv->sessions); + return media->priv->sessions != NULL ? + g_hash_table_get_keys(media->priv->sessions) : NULL; } void