Skip to content

Commit ea1d875

Browse files
hanwengitster
authored andcommitted
read_gitfile_gently: clarify return value ownership.
Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d83d846 commit ea1d875

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,8 @@ void read_gitfile_error_die(int error_code, const char *path, const char *dir)
541541

542542
/*
543543
* Try to read the location of the git directory from the .git file,
544-
* return path to git directory if found.
544+
* return path to git directory if found. The return value comes from
545+
* a shared buffer.
545546
*
546547
* On failure, if return_error_code is not NULL, return_error_code
547548
* will be set to an error code and NULL will be returned. If

0 commit comments

Comments
 (0)