Skip to content

Commit dfcb92f

Browse files
committed
Address review comment
1 parent e10ef39 commit dfcb92f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/julia_init.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ const char *get_sysimage_path(const char *libname) {
4242

4343
void set_depot_load_path(const char *root_dir) {
4444
#ifdef _WIN32
45+
char *path_sep = ";";
4546
char *julia_share_subdir = "\\share\\julia";
4647
#else
48+
char *path_sep = ":";
4749
char *julia_share_subdir = "/share/julia";
4850
#endif
4951
int share_path_len = strlen(root_dir) + strlen(julia_share_subdir) + 1;
@@ -54,7 +56,7 @@ void set_depot_load_path(const char *root_dir) {
5456
char *new_depot_path = calloc(sizeof (char), new_depot_path_len);
5557
if (curr_depot_path_len > 0) {
5658
strcat(new_depot_path, curr_depot_path);
57-
strcat(new_depot_path, ":");
59+
strcat(new_depot_path, path_sep);
5860
}
5961
strcat(new_depot_path, root_dir);
6062
strcat(new_depot_path, julia_share_subdir);
@@ -65,7 +67,7 @@ void set_depot_load_path(const char *root_dir) {
6567
char *new_load_path = calloc(sizeof (char), new_load_path_len);
6668
if (curr_load_path_len > 0) {
6769
strcat(new_load_path, curr_load_path);
68-
strcat(new_load_path, ":");
70+
strcat(new_load_path, path_sep);
6971
}
7072
strcat(new_load_path, root_dir);
7173
strcat(new_load_path, julia_share_subdir);

0 commit comments

Comments
 (0)