Fix unintended recursion in __wasilibc_register_preopened_fd. (#133)

This commit is contained in:
Dan Gohman 2019-11-08 11:44:18 -08:00 committed by GitHub
parent 5216983ad7
commit 951cc3eceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -498,7 +498,7 @@ int
__wasilibc_register_preopened_fd(int fd, const char *path) __wasilibc_register_preopened_fd(int fd, const char *path)
{ {
const char *name = strdup(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 int