Init to fix valgrind use-of-uninitialized problem

This commit is contained in:
simon.kagstrom 2010-02-09 12:16:58 +00:00
parent 9b7517fde5
commit 401b93baa9

View File

@ -126,6 +126,8 @@ ImageDrive::ImageDrive(IEC *iec, const char *filepath) : Drive(iec), the_file(NU
}
ch[15].mode = CHMOD_COMMAND;
memset(&this->desc, 0, sizeof(this->desc));
Reset();
// Open image file