uint16_t *offset)
{
SCEnter();
- uint8_t exception;
+ uint8_t exception = 0;
/* Exception code (1 byte) */
if (ModbusExtractUint8(modbus, &exception, input, input_len, offset))
uint16_t *offset)
{
SCEnter();
- uint8_t count;
+ uint8_t count = 0;
/* Count (1 bytes) */
if (ModbusExtractUint8(modbus, &count, input, input_len, offset))
uint16_t *offset)
{
SCEnter();
- uint16_t quantity = 1, word;
- uint8_t byte, count = 1, type = tx->type;
+ uint16_t quantity = 1, word = 0;
+ uint8_t byte = 0, count = 1, type = tx->type;
int i = 0;
uint16_t *offset)
{
SCEnter();
- uint16_t address, quantity, word;
+ uint16_t address = 0, quantity = 0, word = 0;
uint8_t type = tx->type;
/* Starting Address (2 bytes) */
uint16_t *offset)
{
SCEnter();
- uint16_t data;
+ uint16_t data = 0;
/* Sub-function (2 bytes) */
if (ModbusExtractUint16(modbus, &(tx->subFunction), input, input_len, offset))
{
SCEnter();
uint16_t offset = (uint16_t) sizeof(ModbusHeader);
- uint8_t count;
+ uint8_t count = 0;
int i = 0;
{
SCEnter();
uint16_t offset = (uint16_t) sizeof(ModbusHeader);
- uint8_t count, error = FALSE, function, mei;
+ uint8_t count = 0, error = FALSE, function = 0, mei = 0;
/* Standard function codes used on MODBUS application layer protocol (1 byte) */
if (ModbusExtractUint8(modbus, &function, input, input_len, &offset))