Advertisement
tomkiewicz

pidgin-crash

Feb 9th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.56 KB | None | 0 0
  1. diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
  2. --- a/pidgin/gtkconv.c
  3. +++ b/pidgin/gtkconv.c
  4. @@ -6460,7 +6460,8 @@
  5.  
  6.     } else if ((flags & PURPLE_MESSAGE_RECV) && (old_flags & PURPLE_MESSAGE_RECV)) {
  7.         GList *history = purple_conversation_get_message_history(conv);
  8. -       PurpleConvMessage *last_msg = (PurpleConvMessage *)history->data;
  9. +       PurpleConvMessage *last_msg = history ?
  10. +           (PurpleConvMessage *)history->data : NULL;
  11.  
  12.         /* If the senders are the same, use appendNextMessage */
  13.         if (purple_strequal(purple_conversation_message_get_sender(last_msg), name)) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement