about summary refs log tree commit diff stats
path: root/src/tools/parser.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-14 23:36:00 +0100
committerJames Booth <boothj5@gmail.com>2014-04-14 23:36:00 +0100
commit3e69d6b71ed57964df92f172d8f7a041e798a2e3 (patch)
tree8ae92db067261c93e6a12fd72553b46fe49909c8 /src/tools/parser.c
parent428d9eb936db2436ae72f2bf18afba635b15cbeb (diff)
downloadprofani-tty-3e69d6b71ed57964df92f172d8f7a041e798a2e3.tar.gz
Refactored cmd_join to use parse_options
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;
         }