You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/09/26 06:28:56 UTC

[GitHub] [mynewt-nimble] greedyhao opened a new issue #1028: Confusion about the ble_gatts_start()

greedyhao opened a new issue #1028:
URL: https://github.com/apache/mynewt-nimble/issues/1028


   ```
   int
   ble_gatts_start(void)
   {
   ...
       if (ble_hs_max_services > 0) {
           ble_gatts_svc_entries =
               malloc(ble_hs_max_services * sizeof *ble_gatts_svc_entries);
           if (ble_gatts_svc_entries == NULL) {
               rc = BLE_HS_ENOMEM;
               goto done;
           }
       }
   ...
   }
   ```
   
   Is the sizeof function used correctly?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] greedyhao closed issue #1028: Confusion about the ble_gatts_start()

Posted by GitBox <gi...@apache.org>.
greedyhao closed issue #1028:
URL: https://github.com/apache/mynewt-nimble/issues/1028


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org