1
0
Fork 0

Init some more fields in the constructors, else uninited stuff gets copied in copy constructors.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4289
This commit is contained in:
Peter Veenstra 2019-11-15 18:37:20 +00:00
parent 96bdc056ee
commit a533565297
2 changed files with 8 additions and 8 deletions

View file

@ -62,7 +62,7 @@ class DOS_DTA;
class DOS_File {
public:
DOS_File():flags(0) { name=0; refCtr = 0; hdrive=0xff; };
DOS_File():flags(0),time(0),date(0),attr(0),refCtr(0),open(false),name(0),hdrive(0xff) { };
DOS_File(const DOS_File& orig);
DOS_File & operator= (const DOS_File & orig);
virtual ~DOS_File(){if(name) delete [] name;};