diff options
author | midipix <writeonce@midipix.org> | 2016-10-24 01:26:34 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:50 -0500 |
commit | 461b1f7c8ca47552875770ca4af8609ec8a0e802 (patch) | |
tree | 0aa711514c834fedf199abaa7c2f29c922a3fc96 /src/driver | |
parent | 8c0a9c328c13db110ba96986f6661853dbbb574a (diff) | |
download | mdso-461b1f7c8ca47552875770ca4af8609ec8a0e802.tar.bz2 mdso-461b1f7c8ca47552875770ca4af8609ec8a0e802.tar.xz |
driver: mdso_main(): skip remaining tasks once an error has occurred.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/mdso_amain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/mdso_amain.c b/src/driver/mdso_amain.c index 5849911..3dbf215 100644 --- a/src/driver/mdso_amain.c +++ b/src/driver/mdso_amain.c @@ -78,14 +78,14 @@ int mdso_main(int argc, char ** argv, char ** envp) if ((mdso_version(dctx)) < 0) return mdso_exit(dctx,2); - for (unit=dctx->units; *unit; unit++) { + for (unit=dctx->units; *unit && !dctx->errv[0]; unit++) { if (!(mdso_get_unit_ctx(dctx,*unit,&uctx))) { mdso_perform_unit_actions(dctx,uctx); mdso_free_unit_ctx(uctx); } } - if (*dctx->units) + if (*dctx->units && !dctx->errv[0]) mdso_create_implib_sources(dctx); return mdso_exit(dctx,dctx->errv[0] ? 2 : 0); |