From ced7386e9fcad0699fc13a9623426105fcc266fe Mon Sep 17 00:00:00 2001 From: wargio Date: Sat, 12 Sep 2026 20:53:06 +0100 Subject: [PATCH] rz-test: Handle null `path` in database_load --- binrz/rz-test/load.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/binrz/rz-test/load.c b/binrz/rz-test/load.c index 8327975e71..09388045da 100644 --- a/binrz/rz-test/load.c +++ b/binrz/rz-test/load.c @@ -683,7 +683,9 @@ static inline bool skip_archos(const char *subname) { } static bool database_load(RzTestDatabase *db, const char *path, int depth) { - if (depth <= 0) { + if (!path) { + return false; + } else if (depth <= 0) { eprintf("Directories for loading tests too deep: %s\n", path); return false; }