diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lt_path.c | 2 |
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; |