sm: use NULL

This commit is contained in:
Matthias Ringwald 2024-04-17 17:52:19 +02:00
parent f29c10235a
commit 6643d79baa

View File

@ -3742,7 +3742,7 @@ static void sm_handle_random_result_ir(void *arg){
static void sm_handle_random_result_er(void *arg){
sm_persistent_keys_random_active = false;
if (arg != 0){
if (arg != NULL){
// key generated, store in tlv
int status = sm_tlv_impl->store_tag(sm_tlv_context, BTSTACK_TAG32('S','M','E','R'), sm_persistent_er, 16u);
log_info("Generated ER key. Store in TLV status: %d", status);