summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-05-06 15:10:25 +0000
committermidipix <writeonce@midipix.org>2024-05-06 15:10:25 +0000
commiteeab7e33b31021905af64099fecedb0bf5cbb71d (patch)
tree4912841dc889c0d9e6baea28ce5a93b4dbfb87a6 /src/internal
parent529133ae6e3250d3e5a8d0f6c75b67a1849bd8b4 (diff)
downloadslibtool-eeab7e33b31021905af64099fecedb0bf5cbb71d.tar.bz2
slibtool-eeab7e33b31021905af64099fecedb0bf5cbb71d.tar.xz
slbt_get_mkvars_var(): explicitly promote char to int when calling isspace().
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_mkvars_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/slibtool_mkvars_impl.c b/src/internal/slibtool_mkvars_impl.c
index 155036a..5245034 100644
--- a/src/internal/slibtool_mkvars_impl.c
+++ b/src/internal/slibtool_mkvars_impl.c
@@ -38,7 +38,7 @@ static int slbt_get_mkvars_var(
/* search for ^var= */
for (pline=tctx->txtlinev; !match && *pline; pline++) {
if (!strncmp(*pline,var,len)) {
- if (isspace((*pline)[len]) || ((*pline)[len] == '=')) {
+ if (isspace((cint = (*pline)[len])) || ((*pline)[len] == '=')) {
mark = &(*pline)[len];
for (; isspace(cint = *mark); )