summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-23 21:50:40 -0500
committermidipix <writeonce@midipix.org>2016-11-11 00:22:31 -0500
commitcfa298f7f4637201610624b86d03dd209de0034a (patch)
tree318e35adfd448c3b63cf1096edb84fe565f7684e /src
parent81f4626daa781cb9d1b9300765babe5ff212923e (diff)
downloadmdso-cfa298f7f4637201610624b86d03dd209de0034a.tar.bz2
mdso-cfa298f7f4637201610624b86d03dd209de0034a.tar.xz
front-end utility: do not perform driver-level actions when there are no units.
Diffstat (limited to 'src')
-rw-r--r--src/mdso.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mdso.c b/src/mdso.c
index 4c0b667..fdce786 100644
--- a/src/mdso.c
+++ b/src/mdso.c
@@ -60,9 +60,11 @@ int mdso_main(int argc, const char ** argv, const char ** envp)
}
}
- dctx->status = mdso_create_implib_sources(dctx);
- dctx->nerrors += !!dctx->status;
- ret += dctx->nerrors;
+ if (*dctx->units) {
+ dctx->status = mdso_create_implib_sources(dctx);
+ dctx->nerrors += !!dctx->status;
+ ret += dctx->nerrors;
+ }
return mdso_exit(dctx,ret);
}