Some tidying and tweaks to options code.

This commit is contained in:
nicm
2017-01-11 14:56:44 +00:00
parent 5526627558
commit 458b6eb600
5 changed files with 37 additions and 35 deletions

View File

@ -947,8 +947,8 @@ options_table_print_entry(const struct options_table_entry *oe,
xsnprintf(out, sizeof out, "%lld", o->num);
break;
case OPTIONS_TABLE_KEY:
xsnprintf(out, sizeof out, "%s",
key_string_lookup_key(o->num));
s = key_string_lookup_key(o->num);
xsnprintf(out, sizeof out, "%s", s);
break;
case OPTIONS_TABLE_COLOUR:
s = colour_tostring(o->num);