From 31f12c10df52e44e7cef0245fc55ae38159ce9e3 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sun, 12 Jun 2016 16:38:34 +0200 Subject: Use strarray_find instead of g_strv_contains --- src/core/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/settings.c') 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); -- cgit v1.2.3