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;