1
1

1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>

* treestore.c 	(tree_store_add_entry): Use g_new0 to allocate the tree_entry.
Этот коммит содержится в:
Miguel de Icaza 1999-02-07 07:49:44 +00:00
родитель 2d77bf3f10
Коммит 10caf04f24
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -1,6 +1,8 @@
1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* treestore.c (tree_store_notify_add): Close, but no cigar. The
* treestore.c (tree_store_add_entry): Use g_new0 to allocate the tree_entry.
(tree_store_notify_add): Close, but no cigar. The
bug was deeper: This list keeps names, not tree_entries.
1999-02-07 Federico Mena Quintero <federico@nuclecu.unam.mx>

Просмотреть файл

@ -386,7 +386,7 @@ tree_store_add_entry (char *name)
return current; /* Already in the list */
/* Not in the list -> add it */
new = g_new (tree_entry, 1);
new = g_new0 (tree_entry, 1);
if (!current){
/* Append to the end of the list */
if (!ts.tree_first){