From fab08a39516b5a9112ea9d75478672eb5b1f8529 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Fri, 13 Aug 2010 19:10:31 +0000 Subject: [PATCH] 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! --- libnfc/nfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/nfc.c b/libnfc/nfc.c index f52ed21..0565af3 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -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 - * @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) {