From 8ca65c757797371f99c5acb1bb554f797cf2c0ec Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 22 Jun 2025 19:31:50 +0000 Subject: lt_dlopen_locked(): add missing check for record type (symtbl vs. module). --- src/core/lt_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3