Added object list init into create function in cases where create is called before init. (#1122)

This commit is contained in:
Steve Karg
2025-10-29 08:44:31 -05:00
committed by GitHub
parent cf79515272
commit f278ccf37d
26 changed files with 76 additions and 0 deletions
+3
View File
@@ -1191,6 +1191,9 @@ uint32_t bacfile_create(uint32_t object_instance)
struct object_data *pObject = NULL;
int index = 0;
if (!Object_List) {
Object_List = Keylist_Create();
}
if (object_instance > BACNET_MAX_INSTANCE) {
return BACNET_MAX_INSTANCE;
} else if (object_instance == BACNET_MAX_INSTANCE) {