diff options
author | LemonBoy <thatlemon@gmail.com> | 2016-06-12 16:38:34 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2016-06-12 16:38:34 +0200 |
commit | 31f12c10df52e44e7cef0245fc55ae38159ce9e3 (patch) | |
tree | 9a9b0d462f3944cd269f710b93d7906530570ac6 /src/core/settings.c | |
parent | 86c5e56ef41c70030e43d03b4c01e2df8188c30b (diff) | |
download | irssi-31f12c10df52e44e7cef0245fc55ae38159ce9e3.zip |
Use strarray_find instead of g_strv_contains
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); |