summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-12-27 08:48:33 +0000
committerRoland McGrath <roland@gnu.org>1998-12-27 08:48:33 +0000
commit8d4908da2c30c636575a799c352d9af95027ac36 (patch)
treed85718602c16a3d16374ae05fdff90639493e915
parent93e065eec1c02dd21f4a7deeae87bc666a5b40c5 (diff)
1998-12-26 Roland McGrath <roland@baalperazim.frob.com>
* exec.c (do_exec): Fix conditional for cleaning up INTERP, from nonnull E.interp.section to nonnull INTERP.file. If we failed to open the interpreter file, INTERP.file will be null and the rest of INTERP will be uninitialized.
-rw-r--r--exec/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c
index 6a5c18a2..1655aeaa 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -1623,7 +1623,7 @@ do_exec (file_t file,
}
out:
- if (e.interp.section)
+ if (interp.file != MACH_PORT_NULL)
finish (&interp, 1);
finish (&e, !e.error);