mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
Strip the surrounding whitespace.
This commit is contained in:
parent
7307b48bd6
commit
6f795f020d
2 changed files with 17 additions and 5 deletions
|
|
@ -386,7 +386,7 @@ gboolean settings_set_choice(const char *key, const char *value)
|
|||
SETTINGS_REC *rec;
|
||||
|
||||
rec = settings_get_record(key);
|
||||
/* XXX: The leading/trailing whitespace makes the test fail */
|
||||
|
||||
if (rec != NULL && strarray_find(rec->choices, value) < 0) {
|
||||
char *msg = g_strjoinv(",", rec->choices);
|
||||
g_warning("Invalid value for '%s', must be one of: %s", key, msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue