summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 3957483..138447a 100644
--- a/main.c
+++ b/main.c
@@ -90,7 +90,7 @@ print_usage(const char *app)
" Preload the given `library`, optionally aliased to `name`.\n\n"
"-L pattern\n"
- " Append given `pattern` to default library search paths. If the pattern\n"
+ " Prepend given `pattern` to default library search paths. If the pattern\n"
" contains no `*`, it is added twice, once with `/*.so` and once with\n"
" `/*.uc` appended to it.\n\n"
@@ -505,8 +505,6 @@ main(int argc, char **argv)
.raw_mode = true
};
- uc_search_path_init(&config.module_search_path);
-
app = appname(argv[0]);
if (argc == 1) {
@@ -544,6 +542,8 @@ main(int argc, char **argv)
}
}
+ uc_search_path_init(&config.module_search_path);
+
optind = 1;
uc_vm_init(&vm, &config);