conversation variable replacement

Ethan Blanton elb at pidgin.im
Tue Nov 27 17:34:01 EST 2007


GMail spake unto us the following wisdom:
> // My code //
> static GHashTable *HTconversations = g_hash_table_new_full 
> (g_str_hash, g_str_equal, g_free, NULL);

Yeah, this isn't legal C.  Declare it to be = NULL here, and
initialize it in purple_conversations_init().

Ethan

-- 
The laws that forbid the carrying of arms are laws [that have no remedy
for evils].  They disarm only those who are neither inclined nor
determined to commit crimes.
		-- Cesare Beccaria, "On Crimes and Punishments", 1764
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20071127/b60a5e43/attachment.sig>


More information about the Devel mailing list