From d4d5c91a7a8a3a83d8fc6e0966d0f63d41be8d5c Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 17 Mar 2024 00:28:21 +0000 Subject: lt_dlpathopen_locked(): lt_pathv may be a null vector. --- src/core/lt_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/lt_path.c b/src/core/lt_path.c index fce4294..d5b2a87 100644 --- a/src/core/lt_path.c +++ b/src/core/lt_path.c @@ -291,7 +291,7 @@ static int lt_dlpathopen_locked( memcpy(path,module,mlen); - for (ppath=lt_pathv; *ppath; ppath++) { + for (ppath=lt_pathv; ppath && *ppath; ppath++) { fdat = open(*ppath,O_RDONLY|O_DIRECTORY|O_CLOEXEC,0); if (fdat >= 0) { -- cgit v1.2.3