summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 23:56:25 -0400
committermidipix <writeonce@midipix.org>2016-10-26 00:05:09 -0400
commitdcd526d745800b85049abc84d5120977e6d13c1b (patch)
tree338a6e5750c21204b5d1d577d952b27d3a89a31b /src/driver
parent7ed7e66b32a56fd1f16b73cd9aaccf59b0d64f27 (diff)
downloadsofort-dcd526d745800b85049abc84d5120977e6d13c1b.tar.bz2
sofort-dcd526d745800b85049abc84d5120977e6d13c1b.tar.xz
driver: sfrt_main(): skip remaining units once an error has occurred.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/sfrt_amain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/sfrt_amain.c b/src/driver/sfrt_amain.c
index d9ee482..0b18010 100644
--- a/src/driver/sfrt_amain.c
+++ b/src/driver/sfrt_amain.c
@@ -79,7 +79,7 @@ int sfrt_main(int argc, char ** argv, char ** envp)
if ((sfrt_output_dummy(dctx->cctx,stdout)) < 0) /* dummy */
return sfrt_exit(dctx,2); /* dummy */
/* dummy */
- for (unit=dctx->units; *unit; unit++) {
+ for (unit=dctx->units; *unit && !dctx->errv[0]; unit++) {
if (!(sfrt_get_unit_ctx(dctx,*unit,&uctx))) {
sfrt_perform_unit_actions(dctx,uctx);
sfrt_free_unit_ctx(uctx);