adium: 3710668f: Avoid crashing in purple_conv_chat_cb_ge...

zacw at adiumx.com zacw at adiumx.com
Tue Apr 14 03:11:49 EDT 2009


-----------------------------------------------------------------
Revision: 3710668ffc22fd2a9f1cafc4e319391a40548144
Ancestor: 20eb54f179628d0eb03d21edf024d7748d1964d8
Author: zacw at adiumx.com
Date: 2009-04-14T06:37:26
Branch: im.pidgin.adium
URL: http://d.pidgin.im/viewmtn/revision/info/3710668ffc22fd2a9f1cafc4e319391a40548144

Modified files:
        libpurple/conversation.c

ChangeLog: 

Avoid crashing in purple_conv_chat_cb_get_attribute when key is NULL.

-------------- next part --------------
============================================================
--- libpurple/conversation.c	7427c0a63d7da2c076f80426775025763f506533
+++ libpurple/conversation.c	011b9e800dcf35344ba7d6a1142494f1313a2511
@@ -2075,6 +2075,7 @@ purple_conv_chat_cb_get_attribute(Purple
 purple_conv_chat_cb_get_attribute(PurpleConvChatBuddy *cb, const char *key)
 {
 	g_return_val_if_fail(cb != NULL, NULL);
+	g_return_val_if_fail(key != NULL, NULL);
 	
 	return g_hash_table_lookup(cb->attributes, key);
 }


More information about the Commits mailing list