summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-13 16:32:45 +0000
committermidipix <writeonce@midipix.org>2024-02-13 16:32:45 +0000
commit68760b855037f8f5d03c99db3e5b646674d9cfe6 (patch)
tree868bb861d93adfc14dc7b6d84c2b46f81ee898b7 /src/internal
parentfc8ee9c0c22a831f03d35885e14ac72ddc91a04c (diff)
downloadslibtool-68760b855037f8f5d03c99db3e5b646674d9cfe6.tar.bz2
slibtool-68760b855037f8f5d03c99db3e5b646674d9cfe6.tar.xz
slbt_get_lconf_flags(): make the dlltool related comparison more concise.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_lconf_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/slibtool_lconf_impl.c b/src/internal/slibtool_lconf_impl.c
index c6c2f2a..4956b24 100644
--- a/src/internal/slibtool_lconf_impl.c
+++ b/src/internal/slibtool_lconf_impl.c
@@ -808,7 +808,7 @@ int slbt_get_lconf_flags(
/* dlltool tool (optional) */
if (!ctx->cctx.host.dlltool) {
- if (slbt_get_lconf_var(addr,cap,"DLLTOOL=",&val) >= 0) {
+ if (!slbt_get_lconf_var(addr,cap,"DLLTOOL=",&val)) {
if (val[0] && !(ctx->host.dlltool = strdup(val)))
return SLBT_SYSTEM_ERROR(dctx,0);