[grilo/master.msvc: 9/13] src: Use correct envvar separator
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/master.msvc: 9/13] src: Use correct envvar separator
- Date: Wed, 22 Apr 2020 07:00:43 +0000 (UTC)
commit dfdc8a60925b09f123ee97bcb7f20458036b0815
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Apr 22 14:50:04 2020 +0800
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
src/grilo.c | 2 +-
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];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]