aboutsummaryrefslogtreecommitdiff
path: root/sim/common/run.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/run.c')
-rw-r--r--sim/common/run.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/common/run.c b/sim/common/run.c
index 6740f69..15497ec 100644
--- a/sim/common/run.c
+++ b/sim/common/run.c
@@ -198,6 +198,8 @@ main (ac, av)
/* Ensure that any run-time initialisation that needs to be
performed by the simulator can occur. */
sd = sim_open (SIM_OPEN_STANDALONE, sim_argv);
+ if (sd == 0)
+ exit (1);
if (sim_load (sd, name, abfd, 0) == SIM_RC_FAIL)
exit (1);