summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-17 00:28:21 +0000
committermidipix <writeonce@midipix.org>2024-03-17 01:50:40 +0000
commitd4d5c91a7a8a3a83d8fc6e0966d0f63d41be8d5c (patch)
treeb56abd8f598d3dd1b9cedc80ea6261fc049b6bbe
parent6e5587c55b11517fac40d7c2c07fb2946342a161 (diff)
downloadsltdl-d4d5c91a7a8a3a83d8fc6e0966d0f63d41be8d5c.tar.bz2
sltdl-d4d5c91a7a8a3a83d8fc6e0966d0f63d41be8d5c.tar.xz
lt_dlpathopen_locked(): lt_pathv may be a null vector.
-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 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) {