Skip to content

Commit 951cc3e

Browse files
authored
Fix unintended recursion in __wasilibc_register_preopened_fd. (#133)
1 parent 5216983 commit 951cc3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libc-bottom-half/libpreopen/libpreopen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ int
498498
__wasilibc_register_preopened_fd(int fd, const char *path)
499499
{
500500
const char *name = strdup(path);
501-
return name == NULL ? -1 : __wasilibc_register_preopened_fd(fd, name);
501+
return name == NULL ? -1 : internal_register_preopened_fd(fd, name);
502502
}
503503

504504
int

0 commit comments

Comments
 (0)