Fix doxygen comment: the string SHALL NOT be freed (it's const BTW).
Or maybe I would rather have removed the const and called strdup(3)? New issue Summary: Sync code and comments Owner: rconty@il4p.fr Status: New Romuald, can you please review this changeset and fix the code if I corrected the wrong way (i.e. the comment was Okay and the code bogus while I fixed the comment thinking the cod was right). Thanks!
This commit is contained in:
parent
2029e0c66f
commit
fab08a3951
1 changed files with 1 additions and 1 deletions
|
@ -1095,7 +1095,7 @@ bool nfc_target_send_dep_bytes(const nfc_device_t* pnd, const byte_t* pbtTx, con
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns the device name
|
* @brief Returns the device name
|
||||||
* @return Returns a string with the device name ( MUST be freed with free() )
|
* @return Returns a string with the device name
|
||||||
*/
|
*/
|
||||||
const char* nfc_device_name(nfc_device_t* pnd)
|
const char* nfc_device_name(nfc_device_t* pnd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue