From 4aebb45a7bdb9e4e0941b237ce4c7b37a79f205c Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 26 Oct 2016 22:08:38 -0400 Subject: driver: amgc_main(): skip remaining units once an error has occurred. --- src/driver/amgc_amain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3