Skip to content

Commit 5477298

Browse files
[nrf noup] Fix the build warning in door-lock-server
This fixes the uninitialized variable warning appearing when compiling the door lock app. Signed-off-by: Patryk Lipinski <patryk.lipinski@nordicsemi.no>
1 parent cb2a393 commit 5477298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/clusters/door-lock-server/door-lock-server.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3362,8 +3362,8 @@ bool DoorLockServer::HandleRemoteLockOperation(chip::app::CommandHandler * comma
33623362

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

0 commit comments

Comments
 (0)