diff options
author | midipix <writeonce@midipix.org> | 2016-04-07 12:06:52 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-07 12:06:52 -0400 |
commit | 82142f33ca3209442426e56da24d9722adf4c8bb (patch) | |
tree | ea5cdabf1627c636719b0a7e5fdc3141d8372065 /src | |
parent | 14691615ea47dd30f03db73505f3f493c202e512 (diff) | |
download | slibtool-82142f33ca3209442426e56da24d9722adf4c8bb.tar.bz2 slibtool-82142f33ca3209442426e56da24d9722adf4c8bb.tar.xz |
driver: slbt_init_link_params(): optimize the function return code path.
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index c6a11f9..a7d02a3 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -523,10 +523,7 @@ static int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx) program,prefix); return -1; } - } - - /* executable? */ - if (!libname) + } else return 0; /* libname alloc */ |