comparison src/audacious/tuple.c @ 3505:7d865b5f5a04 trunk

Oops, previous merge had removed an important memset(), fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 08 Sep 2007 20:58:26 +0300
parents 04ecdd1b0e12
children 65502ec17b75
comparison
equal deleted inserted replaced
3504:04ecdd1b0e12 3505:7d865b5f5a04
117 } 117 }
118 118
119 /* FIXME: use mowgli_object_bless_from_class() in mowgli 0.4 119 /* FIXME: use mowgli_object_bless_from_class() in mowgli 0.4
120 when it is released --nenolod */ 120 when it is released --nenolod */
121 tuple = mowgli_heap_alloc(tuple_heap); 121 tuple = mowgli_heap_alloc(tuple_heap);
122 memset(tuple, 0, sizeof(Tuple));
122 mowgli_object_init(mowgli_object(tuple), NULL, &tuple_klass, NULL); 123 mowgli_object_init(mowgli_object(tuple), NULL, &tuple_klass, NULL);
123 124
124 tuple->dict = mowgli_dictionary_create(g_ascii_strcasecmp); 125 tuple->dict = mowgli_dictionary_create(g_ascii_strcasecmp);
125 126
126 TUPLE_UNLOCK_WRITE(); 127 TUPLE_UNLOCK_WRITE();