mirror of
https://github.com/vgough/encfs.git
synced 2025-06-20 19:57:52 +02:00
Merge pull request #171 from ial0/fix-refactor
Fix undeeded string assignment in eraseNode
This commit is contained in:
commit
e19f4a8c69
@ -127,6 +127,10 @@ void EncFS_Context::eraseNode(const char *path, FileNode *pl) {
|
||||
|
||||
it->second.pop_front();
|
||||
|
||||
// if no more references to this file, remove the record all together
|
||||
if (it->second.empty()) {
|
||||
openFiles.erase(it);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace encfs
|
||||
|
Loading…
x
Reference in New Issue
Block a user