Bugfix/cppcheck error code fixes (#244)

* Add flawfinder. Add error code for exit status.

* fix errors found by cppcheck

* fix initialization warning in unit test compile

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2022-03-28 10:29:52 -05:00
committed by GitHub
parent 7b685d0e3d
commit 5b07b484d4
7 changed files with 32 additions and 10 deletions
+2 -2
View File
@@ -1509,7 +1509,7 @@ BACNET_PROPERTY_ID property_list_special_property(
{
int property = -1; /* return value */
unsigned required, optional, proprietary;
struct special_property_list_t PropertyList = { { 0 } };
struct special_property_list_t PropertyList = { 0 };
property_list_special(object_type, &PropertyList);
required = PropertyList.Required.count;
@@ -1552,7 +1552,7 @@ unsigned property_list_special_count(
BACNET_OBJECT_TYPE object_type, BACNET_PROPERTY_ID special_property)
{
unsigned count = 0; /* return value */
struct special_property_list_t PropertyList = { { 0 } };
struct special_property_list_t PropertyList = { 0 };
property_list_special(object_type, &PropertyList);
if (special_property == PROP_ALL) {