rz-test: Handle null path in database_load

This commit is contained in:
wargio
2026-09-13 15:31:53 +01:00
committed by Giovanni
parent aecbbc4975
commit ced7386e9f
+3 -1
View File
@@ -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;
}