Fixed BACNET_APPLICATION_DATA_VALUE declarations to be initialized so that the next pointer is NULL by default. (#814)

This commit is contained in:
Steve Karg
2024-10-18 07:43:39 -05:00
committed by GitHub
parent ac7dee0021
commit c3cb72bc41
88 changed files with 99 additions and 99 deletions
+1 -1
View File
@@ -1406,7 +1406,7 @@ bool Device_Write_Property_Local(BACNET_WRITE_PROPERTY_DATA *wp_data)
{
bool status = false; /* return value */
int len = 0;
BACNET_APPLICATION_DATA_VALUE value;
BACNET_APPLICATION_DATA_VALUE value = { 0 };
BACNET_OBJECT_TYPE object_type = OBJECT_NONE;
uint32_t object_instance = 0;
int result = 0;
+2 -2
View File
@@ -116,7 +116,7 @@ void rp_ack_extract_data(BACNET_READ_PROPERTY_DATA *data)
char ackString[MAX_ACK_STRING] = "";
char *pAckString = &ackString[0];
BACNET_OBJECT_PROPERTY_VALUE object_value; /* for bacapp printing */
BACNET_APPLICATION_DATA_VALUE value; /* for decode value data */
BACNET_APPLICATION_DATA_VALUE value = { 0 };
int len = 0;
uint8_t *application_data;
int application_data_len;
@@ -714,7 +714,7 @@ int BacnetWriteProperty(
/* Handle the tag/value pair */
uint8_t context_tag = 0;
BACNET_APPLICATION_TAG property_tag;
BACNET_APPLICATION_DATA_VALUE propertyValue;
BACNET_APPLICATION_DATA_VALUE propertyValue = { 0 };
if (toupper(tag[0]) == 'C') {
context_tag = strtol(&tag[1], NULL, 0);
+1 -1
View File
@@ -1358,7 +1358,7 @@ bool Device_Write_Property_Local(BACNET_WRITE_PROPERTY_DATA *wp_data)
{
bool status = false; /* return value */
int len = 0;
BACNET_APPLICATION_DATA_VALUE value;
BACNET_APPLICATION_DATA_VALUE value = { 0 };
BACNET_OBJECT_TYPE object_type = OBJECT_NONE;
uint32_t object_instance = 0;
int result = 0;