[tor-commits] [tor/master] fs: Clarify an ambiguous comment about string/pointer equality

teor at torproject.org teor at torproject.org
Wed Oct 30 06:16:46 UTC 2019


commit dce1f63d4407da0530111ebe049f286a38110f17
Author: teor <teor at torproject.org>
Date:   Wed Oct 30 16:15:43 2019 +1000

    fs: Clarify an ambiguous comment about string/pointer equality
---
 src/lib/fs/path.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/fs/path.c b/src/lib/fs/path.c
index 28dde62ae..1b4bc74e9 100644
--- a/src/lib/fs/path.c
+++ b/src/lib/fs/path.c
@@ -255,7 +255,8 @@ alloc_getcwd(void)
 #endif /* !defined(_WIN32) */
 
 /** Expand possibly relative path <b>fname</b> to an absolute path.
- * Return a newly allocated string, possibly equal to <b>fname</b>. */
+ * Return a newly allocated string, which may be a duplicate of <b>fname</b>.
+ */
 char *
 make_path_absolute(char *fname)
 {



More information about the tor-commits mailing list