Skip to content

Commit

Permalink
real_path: clarify return value ownership
Browse files Browse the repository at this point in the history
Signed-off-by: Han-Wen Nienhuys <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
hanwen authored and gitster committed Sep 27, 2017
1 parent 7451fcd commit d83d846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions abspath.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ char *strbuf_realpath(struct strbuf *resolved, const char *path,
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;
Expand Down

0 comments on commit d83d846

Please sign in to comment.