about summary refs log tree commit diff stats
path: root/src/tools/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/parser.c')
-rw-r--r--src/tools/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/parser.c b/src/tools/parser.c
index b4403d06..6db522aa 100644
--- a/src/tools/parser.c
+++ b/src/tools/parser.c
@@ -390,13 +390,13 @@ parse_options(gchar **args, int start, GList *keys, gboolean *res)
     GList *found_keys = NULL;
     for (curr = start; curr < g_strv_length(args); curr+= 2) {
         // check if option valid
-        if (g_list_find(keys, args[curr]) == NULL) {
+        if (g_list_find_custom(keys, args[curr], (GCompareFunc)g_strcmp0) == NULL) {
             *res = FALSE;
             return options;
         }
 
         // check if duplicate
-        if (g_list_find(found_keys, args[curr]) != NULL) {
+        if (g_list_find_custom(found_keys, args[curr], (GCompareFunc)g_strcmp0) != NULL) {
             *res = FALSE;
             return options;
         }