1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* treestore.c (tree_store_add_entry): Use g_new0 to allocate the tree_entry.
Этот коммит содержится в:
родитель
2d77bf3f10
Коммит
10caf04f24
@ -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){
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user