You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by gi...@git.apache.org on 2017/10/18 11:08:59 UTC

[GitHub] rymanluk closed pull request #626: nimble/host: Fix build issue

rymanluk closed pull request #626: nimble/host: Fix build issue
URL: https://github.com/apache/mynewt-core/pull/626
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/net/nimble/host/src/ble_hs_startup.c b/net/nimble/host/src/ble_hs_startup.c
index c87daa230..5de4256ca 100644
--- a/net/nimble/host/src/ble_hs_startup.c
+++ b/net/nimble/host/src/ble_hs_startup.c
@@ -101,10 +101,10 @@ ble_hs_startup_read_buf_sz_tx(uint16_t *out_pktlen, uint16_t *out_max_pkts)
 static int
 ble_hs_startup_read_buf_sz(void)
 {
-    uint16_t le_pktlen;
-    uint16_t max_pkts;
-    uint16_t pktlen;
-    uint8_t le_max_pkts;
+    uint16_t le_pktlen = 0;
+    uint16_t max_pkts = 0;
+    uint16_t pktlen = 0;
+    uint8_t le_max_pkts = 0;
     int rc;
 
     rc = ble_hs_startup_le_read_buf_sz_tx(&le_pktlen, &le_max_pkts);
@@ -114,7 +114,7 @@ ble_hs_startup_read_buf_sz(void)
 
     if (le_pktlen != 0) {
         pktlen = le_pktlen;
-        max_pkts = le_max_pkts;   
+        max_pkts = le_max_pkts;
     } else {
         rc = ble_hs_startup_read_buf_sz_tx(&pktlen, &max_pkts);
         if (rc != 0) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services