From 768a6c7165cff32d6a3410cac1f9e2121e57a13a Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Wed, 7 Feb 2024 12:51:45 +0530 Subject: [PATCH] nimble/host: Fix compilation issues observed by enabling -O2 optimization --- nimble/host/src/ble_gattc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/src/ble_gattc.c b/nimble/host/src/ble_gattc.c index 91f579c73..be19f2dc9 100644 --- a/nimble/host/src/ble_gattc.c +++ b/nimble/host/src/ble_gattc.c @@ -1509,7 +1509,7 @@ static int ble_gattc_disc_all_svcs_rx_adata(struct ble_gattc_proc *proc, struct ble_att_read_group_type_adata *adata) { - struct ble_gatt_svc service; + struct ble_gatt_svc service = {0}; int cbrc; int rc;