summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/internal/slibtool_lconf_impl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/internal/slibtool_lconf_impl.c b/src/internal/slibtool_lconf_impl.c
index 33dfb23..b332f9b 100644
--- a/src/internal/slibtool_lconf_impl.c
+++ b/src/internal/slibtool_lconf_impl.c
@@ -662,8 +662,10 @@ static int slbt_get_lconf_var(
}
/* not found? */
- if (!match)
+ if (!match) {
+ (*val)[0] = '\0';
return 0;
+ }
/* support a single pair of double quotes */
match = &match[len];