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]
/
lib
/
plugin
/
plugin.c
diff --git
a/lib/plugin/plugin.c
b/lib/plugin/plugin.c
index b11931474ac6cfce5330400d8009e8eeb2fb5d5a..2a76815cdccf0a2618d4d3e0f31567f3b509d52a 100644
(file)
--- a/
lib/plugin/plugin.c
+++ b/
lib/plugin/plugin.c
@@
-406,13
+406,16
@@
int nftw_append_all_from_dir(const char *file, const struct stat *sb, int flag,
switch (flag) {
case FTW_F:
switch (flag) {
case FTW_F:
+ {
+ struct bt_plugin_set *plugins_from_file;
+
if (name[0] == '.') {
/* Skip hidden files */
BT_LOGV("Skipping hidden file: path=\"%s\"", file);
goto end;
}
if (name[0] == '.') {
/* Skip hidden files */
BT_LOGV("Skipping hidden file: path=\"%s\"", file);
goto end;
}
- struct bt_plugin_set *plugins_from_file =
-
bt_plugin_create_all_from_file(file);
+
+
plugins_from_file =
bt_plugin_create_all_from_file(file);
if (plugins_from_file) {
size_t j;
if (plugins_from_file) {
size_t j;
@@
-430,6
+433,7
@@
int nftw_append_all_from_dir(const char *file, const struct stat *sb, int flag,
bt_put(plugins_from_file);
}
break;
bt_put(plugins_from_file);
}
break;
+ }
case FTW_DNR:
/* Continue to next file / directory. */
BT_LOGW("Cannot enter directory: continuing: path=\"%s\"", file);
case FTW_DNR:
/* Continue to next file / directory. */
BT_LOGW("Cannot enter directory: continuing: path=\"%s\"", file);
This page took
0.022843 seconds
and
4
git commands to generate.