diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-06-29 22:16:40 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-06-29 22:16:40 -0400 |
commit | 451e41c6e957cdcb97e0a041e0d7a97ed99f1ecc (patch) | |
tree | c77aff4d55518b5b3ec29d9f40c6b8ce14f1555e /dev | |
parent | 8a0bc840221cf7af4845f4ee44de11bc7271ff10 (diff) | |
download | gem5-451e41c6e957cdcb97e0a041e0d7a97ed99f1ecc.tar.xz |
Fix uninitialized variables in ide controller
dev/ide_ctrl.cc:
Initialize variables to zero to avoid uninitialized usage.
--HG--
extra : convert_revision : 98fd0bfc2b7530938c6ab3a55345d0e594098238
Diffstat (limited to 'dev')
-rw-r--r-- | dev/ide_ctrl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dev/ide_ctrl.cc b/dev/ide_ctrl.cc index 0037e06e0..785f18ae8 100644 --- a/dev/ide_ctrl.cc +++ b/dev/ide_ctrl.cc @@ -103,6 +103,8 @@ IdeController::IdeController(Params *p) // setup the disks attached to controller memset(disks, 0, sizeof(IdeDisk *) * 4); + dev[0] = 0; + dev[1] = 0; if (params()->disks.size() > 3) panic("IDE controllers support a maximum of 4 devices attached!\n"); |