summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-24 01:26:34 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:50 -0500
commit461b1f7c8ca47552875770ca4af8609ec8a0e802 (patch)
tree0aa711514c834fedf199abaa7c2f29c922a3fc96 /src
parent8c0a9c328c13db110ba96986f6661853dbbb574a (diff)
downloadmdso-461b1f7c8ca47552875770ca4af8609ec8a0e802.tar.bz2
mdso-461b1f7c8ca47552875770ca4af8609ec8a0e802.tar.xz
driver: mdso_main(): skip remaining tasks once an error has occurred.
Diffstat (limited to 'src')
-rw-r--r--src/driver/mdso_amain.c4
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);