diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-03-04 01:23:20 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-03-17 20:50:02 +0100 |
commit | 385449b1df593440abcf6636c81eb5ea19b1d1a1 (patch) | |
tree | 71e4417be6058d6df44e4e105f4c60b56d889359 /include/git2/notes.h | |
parent | 9bbc8f350b80a5a6e94651ec667cf9e5d545b317 (diff) | |
download | libgit2-cmn/notes-buf.tar.gz |
note: use a git_buf to return the default namespacecmn/notes-buf
The caller has otherwise no way to know how long the string will be
allocated or ability to free it.
This fixes #2944.
Diffstat (limited to 'include/git2/notes.h')
-rw-r--r-- | include/git2/notes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/notes.h b/include/git2/notes.h index bb7c02dda..3a626cafd 100644 --- a/include/git2/notes.h +++ b/include/git2/notes.h @@ -183,12 +183,12 @@ GIT_EXTERN(void) git_note_free(git_note *note); /** * Get the default notes reference for a repository * - * @param out Pointer to the default notes reference + * @param out buffer in which to store the name of the default notes reference * @param repo The Git repository * * @return 0 or an error code */ -GIT_EXTERN(int) git_note_default_ref(const char **out, git_repository *repo); +GIT_EXTERN(int) git_note_default_ref(git_buf *out, git_repository *repo); /** * Loop over all the notes within a specified namespace |