diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-04-22 14:50:04 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-04-22 14:50:04 +0800 |
commit | dfdc8a60925b09f123ee97bcb7f20458036b0815 (patch) | |
tree | 8ef916c46cc9b825d2e84cc7be041af31515b048 | |
parent | d5c26e419820d65783eec9769e799763ebbc5f07 (diff) | |
download | grilo-dfdc8a60925b09f123ee97bcb7f20458036b0815.tar.gz |
src: Use correct envvar separator
Use the G_SEARCHPATH_SEPARATOR_S macro as it assures that we are using the
correct separator between values that are passed in via an envvar.
The ":" separator is valid on *NIX, but not Windows
-rw-r--r-- | src/grilo.c | 2 | ||||
-rw-r--r-- | src/grl-registry.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/grilo.c b/src/grilo.c index 32f7322..18a9f70 100644 --- a/src/grilo.c +++ b/src/grilo.c @@ -129,7 +129,7 @@ post_parse_hook_cb (GOptionContext *context, } if (plugin_list) { - split_list = g_strsplit (plugin_list, ":", 0); + split_list = g_strsplit (plugin_list, G_SEARCHPATH_SEPARATOR_S, 0); grl_registry_restrict_plugins (registry, split_list); g_strfreev (split_list); } diff --git a/src/grl-registry.c b/src/grl-registry.c index 2aedfa5..85661d7 100644 --- a/src/grl-registry.c +++ b/src/grl-registry.c @@ -445,7 +445,7 @@ grl_registry_setup_ranks (GrlRegistry *registry) iter = rank_specs; while (*iter) { - gchar **rank_info = g_strsplit (*iter, ":", 2); + gchar **rank_info = g_strsplit (*iter, G_SEARCHPATH_SEPARATOR_S, 2); if (rank_info[0] && rank_info[1]) { gchar *tmp; gchar *id = rank_info[0]; |