From 57f19907e84e7f0d2af05953fdddc6bf97febfc0 Mon Sep 17 00:00:00 2001 From: Ragner Magalhaes Date: Tue, 2 Dec 2008 21:02:05 +0000 Subject: [PATCH 1/1] Fixed wrong assertion when sender name is NULL. FIXES: - Fixed wrong assertion when sender name is NULL. Signed-off-by: Bruno Abinader git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1392 596f6dd7-e928-0410-a184-9e12fd12cf7e --- conversation_cbs.pxd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conversation_cbs.pxd b/conversation_cbs.pxd index b230d81..71df18d 100644 --- a/conversation_cbs.pxd +++ b/conversation_cbs.pxd @@ -67,7 +67,7 @@ cdef void write_im (conversation.PurpleConversation *conv, const_char *who, time_t mtime): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "conversation", "write-im\n") cdef account.PurpleAccount *acc = conversation.c_purple_conversation_get_account(conv) - cdef blist.PurpleBuddy *buddy = blist.c_purple_find_buddy(acc, who) + cdef blist.PurpleBuddy *buddy = NULL cdef char *c_username = NULL cdef char *c_sender_alias = NULL @@ -79,6 +79,7 @@ cdef void write_im (conversation.PurpleConversation *conv, const_char *who, if who: sender = who + buddy = blist.c_purple_find_buddy(acc, who) c_sender_alias = blist.c_purple_buddy_get_alias_only(buddy) else: sender = None -- 1.7.9.5