From: Akim Demaille Date: Mon, 3 Jun 2002 07:41:58 +0000 (+0000) Subject: * src/muscle_tab.c (muscle_insert, muscle_find): Declarations, X-Git-Tag: BISON-1_49b~203 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/e9bca3aded3293f3b8761de65fe6e7228738fae4 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations, then statements. --- diff --git a/ChangeLog b/ChangeLog index 974ddd24..a665ebd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-03 Akim Demaille + + * src/muscle_tab.c (muscle_insert, muscle_find): Declarations, + then statements. + 2002-06-03 Akim Demaille * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize diff --git a/src/muscle_tab.c b/src/muscle_tab.c index 7d344a6a..13b14198 100644 --- a/src/muscle_tab.c +++ b/src/muscle_tab.c @@ -73,8 +73,10 @@ void muscle_insert (const char *key, const char *value) { muscle_entry_t pair; + muscle_entry_t *entry = NULL; + pair.key = key; - muscle_entry_t *entry = hash_lookup (muscle_table, &pair); + entry = hash_lookup (muscle_table, &pair); if (!entry) { @@ -90,8 +92,10 @@ const char* muscle_find (const char *key) { muscle_entry_t pair; + muscle_entry_t *result = NULL; + pair.key = key; - muscle_entry_t *result = hash_lookup (muscle_table, &pair); + result = hash_lookup (muscle_table, &pair); return result ? result->value : NULL; }