summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2025-06-22 19:31:50 +0000
committermidipix <writeonce@midipix.org>2025-06-22 19:31:50 +0000
commit8ca65c757797371f99c5acb1bb554f797cf2c0ec (patch)
tree7129b9e933f283132e7be2153db19348b9310068 /src/core
parent6cb9bf45ad3b048ce52c313e5735162db7226bd3 (diff)
downloadsltdl-8ca65c757797371f99c5acb1bb554f797cf2c0ec.tar.bz2
sltdl-8ca65c757797371f99c5acb1bb554f797cf2c0ec.tar.xz
lt_dlopen_locked(): add missing check for record type (symtbl vs. module).
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lt_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lt_path.c b/src/core/lt_path.c
index 2aa9a2b..ba19135 100644
--- a/src/core/lt_path.c
+++ b/src/core/lt_path.c
@@ -402,7 +402,7 @@ static struct lt_modctx * lt_dlopen_locked(
/* module already dlopen'ed? */
for (modctx=lt_modv_head; module && modctx; modctx=modctx->mnext) {
- if (!strcmp(modctx->mpath,mpath)) {
+ if (modctx->mpath && !strcmp(modctx->mpath,mpath)) {
free(mpath);
modctx->mrefs++;
return modctx;