* src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize

structs with non literals.
* src/scan-skel.l: never-interactive.
* src/conflicts.c (enum conflict_resolution_e): No trailing
comma.
* src/getargs.c (usage): Split long literal strings.
Reported by Hans Aberg.
This commit is contained in:
Akim Demaille
2002-06-03 07:30:03 +00:00
parent 9411f454b0
commit 86eff18354
5 changed files with 20 additions and 5 deletions

View File

@@ -72,7 +72,8 @@ muscle_init (void)
void
muscle_insert (const char *key, const char *value)
{
muscle_entry_t pair = { key, NULL };
muscle_entry_t pair;
pair.key = key;
muscle_entry_t *entry = hash_lookup (muscle_table, &pair);
if (!entry)
@@ -88,7 +89,8 @@ muscle_insert (const char *key, const char *value)
const char*
muscle_find (const char *key)
{
muscle_entry_t pair = { key, NULL };
muscle_entry_t pair;
pair.key = key;
muscle_entry_t *result = hash_lookup (muscle_table, &pair);
return result ? result->value : NULL;
}