archive/List: disallow passing suffix==nullptr to archive_plugin_from_suffix()
This commit is contained in:
@@ -58,6 +58,8 @@ OpenArchiveInputStream(Path path, Mutex &mutex)
|
||||
}
|
||||
|
||||
const char *suffix = Path::FromFS(archive).GetSuffix();
|
||||
if (suffix == nullptr)
|
||||
return nullptr;
|
||||
|
||||
//check which archive plugin to use (by ext)
|
||||
arplug = archive_plugin_from_suffix(suffix);
|
||||
|
Reference in New Issue
Block a user