Skip to content

Commit dfdc8a6

Browse files
committed
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
1 parent d5c26e4 commit dfdc8a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/grilo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ post_parse_hook_cb (GOptionContext *context,
129129
}
130130

131131
if (plugin_list) {
132-
split_list = g_strsplit (plugin_list, ":", 0);
132+
split_list = g_strsplit (plugin_list, G_SEARCHPATH_SEPARATOR_S, 0);
133133
grl_registry_restrict_plugins (registry, split_list);
134134
g_strfreev (split_list);
135135
}

src/grl-registry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ grl_registry_setup_ranks (GrlRegistry *registry)
445445
iter = rank_specs;
446446

447447
while (*iter) {
448-
gchar **rank_info = g_strsplit (*iter, ":", 2);
448+
gchar **rank_info = g_strsplit (*iter, G_SEARCHPATH_SEPARATOR_S, 2);
449449
if (rank_info[0] && rank_info[1]) {
450450
gchar *tmp;
451451
gchar *id = rank_info[0];

0 commit comments

Comments
 (0)