Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[ocaml] disable getenv invocation

  • Loading branch information...
commit 5c2c09b9fd73b363a0f99a7dd1d4d76a8de5edd0 1 parent 6abec46
@avsm authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 runtime/base/ocaml/byterun/sys.c
View
6 runtime/base/ocaml/byterun/sys.c
@@ -204,11 +204,7 @@ CAMLprim value caml_sys_getcwd(value unit)
CAMLprim value caml_sys_getenv(value var)
{
- char * res;
-
- res = getenv(String_val(var));
- if (res == 0) caml_raise_not_found();
- return caml_copy_string(res);
+ caml_raise_not_found();
}
char * caml_exe_name;
Please sign in to comment.
Something went wrong with that request. Please try again.