Remove duplicate zeroing
memset zeroes whole &kad. No need to set it's parts to zero. Proposed in
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user