Skip to content

Commit

Permalink
Fix Stat self-assignment problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jul 3, 2024
1 parent 2d3726b commit e57c5c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/include/IFS/Stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ struct Stat {
*/
Stat& operator=(const Stat& rhs)
{
if(this == &rhs) {
return *this;
}
fs = rhs.fs;
name.copy(rhs.name);
size = rhs.size;
Expand Down

0 comments on commit e57c5c9

Please sign in to comment.