summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/apimagic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apimagic.c b/src/apimagic.c
index 4522e73..6c6408c 100644
--- a/src/apimagic.c
+++ b/src/apimagic.c
@@ -50,7 +50,8 @@ int apimagic_main(int argc, const char ** argv, const char ** envp)
apimagic_perform_unit_actions(uctx);
ret += uctx->nerrors;
amgc_free_unit_ctx(uctx);
- }
+ } else
+ ret++;
}
return apimagic_exit(dctx,ret);