summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-13 22:47:39 +0000
committerRoland McGrath <roland@gnu.org>2000-03-13 22:47:39 +0000
commit5e98e2bc0c4bcf1e58626cdc5efad6fa444eb261 (patch)
tree4d383ace7da6db69652654fc98baef7979364f09
parent50fa2e2ccbe62fa98c593ef4fcf9ecca2d0937ec (diff)
2000-03-13 Roland McGrath <roland@baalperazim.frob.com>
* exec.c [! EXECDATA_STREAM] (prepare_stream): Replace no-op with real function to initialize map_* members to zero.
-rw-r--r--exec/exec.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c
index c09bfaf4..0c3ea2a4 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -500,7 +500,16 @@ static void prepare_in_memory (struct execdata *e);
#ifndef EXECDATA_STREAM
-static void prepare_stream (struct execdata *e) {}
+/* We don't have a stdio stream, but we have a mapping window
+ we need to initialize. */
+static void
+prepare_stream (struct execdata *e)
+{
+ e->map_buffer = NULL;
+ e->map_vsize = e->map_fsize = 0;
+ e->map_filepos = 0;
+}
+
static void prepare_in_memory (struct execdata *e) {}
#else