diff options
Diffstat (limited to 'byterun/startup.c')
-rw-r--r-- | byterun/startup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/startup.c b/byterun/startup.c index 81b359c5b..db1784c6c 100644 --- a/byterun/startup.c +++ b/byterun/startup.c @@ -371,7 +371,7 @@ CAMLexport void caml_main(char **argv) stat_free(req_prims); /* Load the globals */ seek_section(fd, &trail, "DATA"); - chan = open_descriptor(fd); + chan = open_descriptor_in(fd); global_data = input_val(chan); close_channel(chan); /* this also closes fd */ stat_free(trail.section); |