diff options
author | midipix <writeonce@midipix.org> | 2016-10-26 22:08:38 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-10-26 22:10:49 -0400 |
commit | 4aebb45a7bdb9e4e0941b237ce4c7b37a79f205c (patch) | |
tree | 053ebcb61a170f591aba1c57fbf28d11b91e3589 /src | |
parent | 8fcd204b2f1998dbc1273d679a1036c2d67c2100 (diff) | |
download | apimagic-4aebb45a7bdb9e4e0941b237ce4c7b37a79f205c.tar.bz2 apimagic-4aebb45a7bdb9e4e0941b237ce4c7b37a79f205c.tar.xz |
driver: amgc_main(): skip remaining units once an error has occurred.
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/amgc_amain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/amgc_amain.c b/src/driver/amgc_amain.c index 41e188f..d86cc96 100644 --- a/src/driver/amgc_amain.c +++ b/src/driver/amgc_amain.c @@ -76,7 +76,7 @@ int amgc_main(int argc, char ** argv, char ** envp) if ((amgc_version(dctx)) < 0) return amgc_exit(dctx,AMGC_ERROR); - for (unit=dctx->units; *unit; unit++) { + for (unit=dctx->units; *unit && !dctx->errv[0]; unit++) { if (!(amgc_get_unit_ctx(dctx,*unit,&uctx))) { amgc_perform_unit_actions(uctx); amgc_free_unit_ctx(uctx); |