[Pcsclite-cvs-commit] r5829 - /trunk/Drivers/ccid/src/commands.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Jul 5 21:19:27 UTC 2011
Author: rousseau
Date: Tue Jul 5 21:19:27 2011
New Revision: 5829
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5829
Log:
CmdXfrBlockAPDU_extended(): Initialize local_rx_length
Silence coverity: Event uninit_use_in_call: Using uninitialized value
"local_rx_length" when calling "CCID_Receive".
Modified:
trunk/Drivers/ccid/src/commands.c
Modified: trunk/Drivers/ccid/src/commands.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/commands.c?rev=5829&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Tue Jul 5 21:19:27 2011
@@ -1440,7 +1440,7 @@
_ccid_descriptor *ccid_descriptor = get_ccid_descriptor(reader_index);
unsigned char chain_parameter;
unsigned int local_tx_length, sent_length;
- unsigned int local_rx_length, received_length;
+ unsigned int local_rx_length = 0, received_length;
int buffer_overflow = 0;
if (PROTOCOL_ICCD_B == ccid_descriptor->bInterfaceProtocol)
More information about the Pcsclite-cvs-commit
mailing list