diff options
-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); |