Skip to content

Commit

Permalink
[nrf noup] Fix the build warning in door-lock-server
Browse files Browse the repository at this point in the history
This fixes the uninitialized variable warning
appearing when compiling the door lock app.

Signed-off-by: Patryk Lipinski <patryk.lipinski@nordicsemi.no>
  • Loading branch information
LipinskiPNordicSemi authored and jfischer-no committed Mar 6, 2024
1 parent cb2a393 commit 2ee0a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/clusters/door-lock-server/door-lock-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3362,8 +3362,8 @@ bool DoorLockServer::HandleRemoteLockOperation(chip::app::CommandHandler * comma

EndpointId endpoint = commandPath.mEndpointId;
OperationErrorEnum reason = OperationErrorEnum::kUnspecified;
Nullable<uint16_t> pinUserIdx; // Will get set to non-null if we find a user for the PIN.
Optional<uint16_t> pinCredIdx; // Will get set to a value if the PIN is one we know about.
Nullable<uint16_t> pinUserIdx; // Will get set to non-null if we find a user for the PIN.
Optional<uint16_t> pinCredIdx{ Optional<uint16_t>::Missing() }; // Will get set to a value if the PIN is one we know about.
bool success = false;
bool sendEvent = true;

Expand Down

0 comments on commit 2ee0a69

Please sign in to comment.