Skip to content

Commit

Permalink
[ocaml] disable getenv invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Feb 15, 2010
1 parent 6abec46 commit 5c2c09b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions runtime/base/ocaml/byterun/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c2c09b

Please sign in to comment.