summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-10-09 23:49:08 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-10-09 23:49:08 (GMT)
commit2e144129d6884f4f9ec5d3f599ec2820613ed419 (patch)
tree76e2b122a5a3391dfb948c50048113c1eda9c2d7 /plugins/pychrysalide
parent7c6fe94c90d320813d0d78a9dbef707696f31505 (diff)
Load Kaitai definitions from $KSPATH when needed.
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r--plugins/pychrysalide/core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/pychrysalide/core.c b/plugins/pychrysalide/core.c
index 771d129..597ad81 100644
--- a/plugins/pychrysalide/core.c
+++ b/plugins/pychrysalide/core.c
@@ -800,11 +800,11 @@ static void load_python_plugins(GPluginModule *plugin)
if (dir != NULL)
{
- closedir(dir);
+ closedir(dir);
- edir = get_effective_directory(PLUGINS_DATA_DIR G_DIR_SEPARATOR_S "python");
- extend_python_path(edir);
- free(edir);
+ edir = get_effective_directory(PLUGINS_DATA_DIR G_DIR_SEPARATOR_S "python");
+ extend_python_path(edir);
+ free(edir);
}
@@ -821,7 +821,7 @@ static void load_python_plugins(GPluginModule *plugin)
save = NULL; /* gcc... */
for (path = strtok_r(paths, ":", &save);
- path != NULL;
+ path != NULL;
path = strtok_r(NULL, ":", &save))
{
dir = opendir(path);
@@ -900,7 +900,7 @@ static void load_python_plugins(GPluginModule *plugin)
}
- closedir(dir);
+ closedir(dir);
}