diff options
Diffstat (limited to 'src/core/settings.c')
-rw-r--r-- | src/core/settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/settings.c b/src/core/settings.c index 9c2389bc..9871ad30 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -387,7 +387,7 @@ gboolean settings_set_choice(const char *key, const char *value) rec = settings_get_record(key); /* XXX: The leading/trailing whitespace makes the test fail */ - if (rec != NULL && g_strv_contains((const char **)rec->choices, value) == FALSE) { + 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); g_free(msg); |