mirror of
https://github.com/rizinorg/rizin.git
synced 2026-10-11 22:19:51 +00:00
rz-test: Handle null path in database_load
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user