rahult-github commented on PR #1792: URL: https://github.com/apache/mynewt-nimble/pull/1792#issuecomment-2147319526
Hi @sjanc , So data here is the pointer which is passed as parameter ble_gap_ext_adv_set_data . Apps like bleprph, create a data pointer, allocate it and then invoke ble_gap_ext_adv_set_data . Since the function does have the code to free the "os_mbuf *data, this change is to also NULL initialize it. -- 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-unsubscr...@mynewt.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org