From: Thadeu Lima de Souza Cascardo Date: Thu, 29 Sep 2005 03:02:48 +0000 (+0000) Subject: Fixed the code to build a list from keys of a hashtable X-Git-Tag: cascardo@tlscascardo--private,libgrammatic--lr1--0.1--base-0~9 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fgrammar.git;a=commitdiff_plain;h=5686303d31f20b8b9b8ecadc18042e63178b4251 Fixed the code to build a list from keys of a hashtable Fixed the code that built a list from the keys of a hash table. git-archimport-id: cascardo@tlscascardo--private/libgrammatic--dev--0.1--patch-9 --- diff --git a/first.c b/first.c index febcc2e..034e15a 100644 --- a/first.c +++ b/first.c @@ -477,8 +477,8 @@ GHashTable* grammar_first (Grammar* grammar) void put_key_on_list (gpointer key, gpointer val, gpointer data) { GList** l; - l = (GList**) l; - *l = g_list_prepend (*l, key); + l = (GList**) data; + *l = g_list_prepend (*l, symbol_copy (key)); } GList* first_get (GHashTable* first, symbol_t* symbol)