projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: plugin system compat for mingw / macOS
[babeltrace.git]
/
common
/
common.c
diff --git
a/common/common.c
b/common/common.c
index 0a0d15836e329d866c40286ded145f209d671b2e..363ffe2da5725e031954edc75f8c0d3928640ae2 100644
(file)
--- a/
common/common.c
+++ b/
common/common.c
@@
-201,19
+201,19
@@
int bt_common_append_plugin_path_dirs(const char *paths, GPtrArray *dirs)
while (at < end) {
GString *path;
while (at < end) {
GString *path;
- const char *next_
colon
;
+ const char *next_
sep
;
- next_
colon = strchr(at, ':'
);
- if (next_
colon
== at) {
+ next_
sep = strchr(at, G_SEARCHPATH_SEPARATOR
);
+ if (next_
sep
== at) {
/*
* Empty path: try next character (supported
* to conform to the typical parsing of $PATH).
*/
at++;
continue;
/*
* Empty path: try next character (supported
* to conform to the typical parsing of $PATH).
*/
at++;
continue;
- } else if (!next_
colon
) {
- /* No more
colon
: use the remaining */
- next_
colon
= paths + strlen(paths);
+ } else if (!next_
sep
) {
+ /* No more
separator
: use the remaining */
+ next_
sep
= paths + strlen(paths);
}
path = g_string_new(NULL);
}
path = g_string_new(NULL);
@@
-221,8
+221,8
@@
int bt_common_append_plugin_path_dirs(const char *paths, GPtrArray *dirs)
goto error;
}
goto error;
}
- g_string_append_len(path, at, next_
colon
- at);
- at = next_
colon
+ 1;
+ g_string_append_len(path, at, next_
sep
- at);
+ at = next_
sep
+ 1;
g_ptr_array_add(dirs, path);
}
g_ptr_array_add(dirs, path);
}
This page took
0.0256 seconds
and
4
git commands to generate.