You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2023/05/08 07:19:38 UTC

[mynewt-nimble] branch master updated: nimble/host: Fix compilation issues observed by enabling -O2 optimization

This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 2fb2440f nimble/host: Fix compilation issues observed by enabling -O2 optimization
2fb2440f is described below

commit 2fb2440f4922e734697242c7fd0aa5f1de690478
Author: Rahul Tank <ra...@espressif.com>
AuthorDate: Fri May 5 12:04:11 2023 +0530

    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 4763f14e..63d967b4 100644
--- a/nimble/host/src/ble_gattc.c
+++ b/nimble/host/src/ble_gattc.c
@@ -1956,7 +1956,7 @@ static int
 ble_gattc_find_inc_svcs_rx_adata(struct ble_gattc_proc *proc,
                                  struct ble_att_read_type_adata *adata)
 {
-    struct ble_gatt_svc service;
+    struct ble_gatt_svc service = {0};
     int call_cb;
     int cbrc;
     int rc;