Skip to content

Commit

Permalink
Fix unintended recursion in __wasilibc_register_preopened_fd. (WebAss…
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Nov 8, 2019
1 parent 5216983 commit 951cc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc-bottom-half/libpreopen/libpreopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ int
__wasilibc_register_preopened_fd(int fd, const char *path)
{
const char *name = strdup(path);
return name == NULL ? -1 : __wasilibc_register_preopened_fd(fd, name);
return name == NULL ? -1 : internal_register_preopened_fd(fd, name);
}

int
Expand Down

0 comments on commit 951cc3e

Please sign in to comment.