diff --git a/src/app/clusters/door-lock-server/door-lock-server.cpp b/src/app/clusters/door-lock-server/door-lock-server.cpp index 3912b022f9..1be72dd1f8 100644 --- a/src/app/clusters/door-lock-server/door-lock-server.cpp +++ b/src/app/clusters/door-lock-server/door-lock-server.cpp @@ -3362,8 +3362,8 @@ bool DoorLockServer::HandleRemoteLockOperation(chip::app::CommandHandler * comma EndpointId endpoint = commandPath.mEndpointId; OperationErrorEnum reason = OperationErrorEnum::kUnspecified; - Nullable pinUserIdx; // Will get set to non-null if we find a user for the PIN. - Optional pinCredIdx; // Will get set to a value if the PIN is one we know about. + Nullable pinUserIdx; // Will get set to non-null if we find a user for the PIN. + Optional pinCredIdx{ Optional::Missing() }; // Will get set to a value if the PIN is one we know about. bool success = false; bool sendEvent = true;