summaryrefslogtreecommitdiffstats
path: root/src/hpa_dco.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/hpa_dco.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hpa_dco.c b/src/hpa_dco.c
index 160d454..bbd3d1c 100644
--- a/src/hpa_dco.c
+++ b/src/hpa_dco.c
@@ -722,6 +722,9 @@ u64 nwipe_read_dco_real_max_sectors( char* device )
unsigned char buffer[LBA_SIZE]; // Received data block
unsigned char sense_buffer[SENSE_BUFFER_SIZE]; // Sense data
+ /* Zero the data block prior to use */
+ memset( buffer, 0, LBA_SIZE );
+
/* three characters represent one byte of sense data, i.e
* two characters and a space "01 AE 67"
*/