fs: Clear vector entries before inserting data

This commit is contained in:
Joel16 2021-09-13 17:44:08 -04:00
parent c602482f70
commit 99b8908e54

View File

@ -118,6 +118,7 @@ namespace FS {
Result ret = 0;
s64 read_entries = 0;
const std::string cwd = path;
entries.clear();
if (strncmp(path, "/", std::strlen(path))) {
FsDirectoryEntry entry;