Skip to content

Commit

Permalink
use abspath for tracking path
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Nov 14, 2023
1 parent bbd56d5 commit dcb2ed0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ static char *abspath(const char *in, int nprefix)
char *in2 = (char*)malloc_s(JL_PATH_MAX);
if (strlen(in) - nprefix == 0) {
memcpy(in2, in, nprefix);
in2[nprefix+1] = '.';
in2[nprefix+2] = '\0';
in2[nprefix] = '.';
in2[nprefix+1] = '\0';
in = in2;
}
DWORD n = GetFullPathName(in + nprefix, 0, NULL, NULL);
Expand Down Expand Up @@ -689,7 +689,7 @@ static void jl_resolve_sysimg_location(JL_IMAGE_SEARCH rel)
if (jl_options.output_code_coverage)
jl_options.output_code_coverage = absformat(jl_options.output_code_coverage);
if (jl_options.tracked_path)
jl_options.tracked_path = absformat(jl_options.tracked_path);
jl_options.tracked_path = abspath(jl_options.tracked_path, 0);

const char **cmdp = jl_options.cmds;
if (cmdp) {
Expand Down

0 comments on commit dcb2ed0

Please sign in to comment.