@@ -616,6 +616,8 @@ DlStatus LockManager::GetWeekdaySchedule(chip::EndpointId endpointId, uint8_t we
616
616
{
617
617
CHIP_ERROR error;
618
618
619
+ WeekDayScheduleInfo weekDayScheduleInStorage;
620
+
619
621
VerifyOrReturnValue (kInvalidEndpointId != endpointId, DlStatus::kFailure );
620
622
621
623
VerifyOrReturnValue (weekdayIndex > 0 , DlStatus::kFailure ); // indices are one-indexed
@@ -667,6 +669,8 @@ DlStatus LockManager::SetWeekdaySchedule(chip::EndpointId endpointId, uint8_t we
667
669
{
668
670
CHIP_ERROR error;
669
671
672
+ WeekDayScheduleInfo weekDayScheduleInStorage;
673
+
670
674
VerifyOrReturnValue (kInvalidEndpointId != endpointId, DlStatus::kFailure );
671
675
672
676
VerifyOrReturnValue (weekdayIndex > 0 , DlStatus::kFailure ); // indices are one-indexed
@@ -705,6 +709,8 @@ DlStatus LockManager::GetYeardaySchedule(chip::EndpointId endpointId, uint8_t ye
705
709
{
706
710
CHIP_ERROR error;
707
711
712
+ YearDayScheduleInfo yearDayScheduleInStorage;
713
+
708
714
VerifyOrReturnValue (kInvalidEndpointId != endpointId, DlStatus::kFailure );
709
715
710
716
VerifyOrReturnValue (yearDayIndex > 0 , DlStatus::kFailure ); // indices are one-indexed
@@ -755,6 +761,8 @@ DlStatus LockManager::SetYeardaySchedule(chip::EndpointId endpointId, uint8_t ye
755
761
{
756
762
CHIP_ERROR error;
757
763
764
+ YearDayScheduleInfo yearDayScheduleInStorage;
765
+
758
766
VerifyOrReturnValue (kInvalidEndpointId != endpointId, DlStatus::kFailure );
759
767
760
768
VerifyOrReturnValue (yearDayIndex > 0 , DlStatus::kFailure ); // indices are one-indexed
@@ -790,6 +798,8 @@ DlStatus LockManager::GetHolidaySchedule(chip::EndpointId endpointId, uint8_t ho
790
798
{
791
799
CHIP_ERROR error;
792
800
801
+ HolidayScheduleInfo holidayScheduleInStorage;
802
+
793
803
VerifyOrReturnValue (kInvalidEndpointId != endpointId, DlStatus::kFailure );
794
804
795
805
VerifyOrReturnValue (holidayIndex > 0 , DlStatus::kFailure ); // indices are one-indexed
@@ -837,6 +847,8 @@ DlStatus LockManager::SetHolidaySchedule(chip::EndpointId endpointId, uint8_t ho
837
847
{
838
848
CHIP_ERROR error;
839
849
850
+ HolidayScheduleInfo holidayScheduleInStorage;
851
+
840
852
VerifyOrReturnValue (kInvalidEndpointId != endpointId, DlStatus::kFailure );
841
853
842
854
VerifyOrReturnValue (holidayIndex > 0 , DlStatus::kFailure ); // indices are one-indexed
0 commit comments