From d83d846e84d6ba6c7c4221d2681dfde820949362 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 26 Sep 2017 13:21:48 +0200 Subject: real_path: clarify return value ownership Signed-off-by: Han-Wen Nienhuys Signed-off-by: Junio C Hamano --- abspath.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'abspath.c') diff --git a/abspath.c b/abspath.c index 708aff8d4..985798532 100644 --- a/abspath.c +++ b/abspath.c @@ -202,6 +202,10 @@ error_out: return retval; } +/* + * Resolve `path` into an absolute, cleaned-up path. The return value + * comes from a shared buffer. + */ const char *real_path(const char *path) { static struct strbuf realpath = STRBUF_INIT; -- cgit v1.2.3