Remove duplicate zeroing

memset zeroes whole &kad. No need to set it's parts to zero. Proposed in
This commit is contained in:
Fedor Piecka
2020-05-29 06:37:31 +02:00
committed by GitHub
parent d2092a0902
commit a4f407f361

View File

@@ -262,8 +262,6 @@ bool SCSIWriteEncryptOptions(string tapeDevice, SCSIEncryptOptions* eOptions){
if(eOptions->keyName!=""){
SSP_KAD kad;
memset(&kad,0,sizeof(kad));
kad.type=0x00;
kad.authenticated=0;
//set the descriptor length to the length of the keyName
byteswap((unsigned char*)&kad.descriptorLength,2,eOptions->keyName.size());