Fix uninitialized value read in the ScsiHardDisk constructor

The call to the ScsiDevice superclass was using the name field (which
was not initialized yet) instead of the name constructor argument
This commit is contained in:
Mihai Parparita 2023-12-10 08:58:12 -08:00
parent 114737db41
commit ea9de4feaf

View File

@ -36,7 +36,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
using namespace std;
ScsiHardDisk::ScsiHardDisk(std::string, int my_id) : ScsiDevice(name, my_id) {
ScsiHardDisk::ScsiHardDisk(std::string name, int my_id) : ScsiDevice(name, my_id) {
}
void ScsiHardDisk::insert_image(std::string filename) {