]> git.proxmox.com Git - wasi-libc.git/commitdiff
Fix environment variable init to exit successfully. (#159)
authorDan Gohman <sunfish@mozilla.com>
Tue, 14 Jan 2020 17:56:58 +0000 (09:56 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2020 17:56:58 +0000 (09:56 -0800)
This fixes https://github.com/bytecodealliance/wasmtime/issues/783.

libc-bottom-half/sources/__environ.c

index ae1d8ac22a07c0ab69302ab7b42905f2f4b6a0a1..8ced8139adce5f1d4608f572e9f03d8cc1147e83 100644 (file)
@@ -59,6 +59,7 @@ static void __wasilibc_populate_environ(void) {
     }
 
     __environ = environ_ptrs;
+    return;
 oserr:
     _Exit(EX_OSERR);
 software: