real_path: clarify return value ownership
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Han-Wen Nienhuys committed
Sep 26, 2017 at 13:21 UTC
d83d846e84d6ba6c7c4221d2681dfde820949362
1 file changed
+4
abspath.c
+4
@@ -202,6 +202,10 @@ error_out:
202
return retval;
203
}
204
205
+/*
206
+ * Resolve `path` into an absolute, cleaned-up path. The return value
207
+ * comes from a shared buffer.
208
+ */
209
const char *real_path(const char *path)
210
{
211
static struct strbuf realpath = STRBUF_INIT;