X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ffs%2Fstat.cpp;fp=source%2Ffs%2Fstat.cpp;h=e296ead3816b9317ecd44f0bc82bf6fbd12cbbed;hb=d15b96b498d7cad51a0cb1dd949f70a04af246e9;hp=773cdefbf8743ce08b6815d6a5115030944b46d1;hpb=41363aed34382386f915f17c1a961750b4fdcb14;p=libs%2Fcore.git diff --git a/source/fs/stat.cpp b/source/fs/stat.cpp index 773cdef..e296ead 100644 --- a/source/fs/stat.cpp +++ b/source/fs/stat.cpp @@ -19,6 +19,9 @@ Stat::Stat(const Stat &other): Stat &Stat::operator=(const Stat &other) { + if(&other==this) + return *this; + exists = other.exists; type = other.type; size = other.size;