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 /CHANGELOG.md | |
parent | 9bbc8f350b80a5a6e94651ec667cf9e5d545b317 (diff) | |
download | libgit2-385449b1df593440abcf6636c81eb5ea19b1d1a1.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 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 34553aa21..112b8e91f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,6 +86,9 @@ v0.22 + 1 non-snapshot configuration, as there can be no guarantee that the returned pointer is valid. +* `git_note_default_ref()` now uses a `git_buf` to return the string, + as the string is otherwise not guaranteed to stay allocated. + v0.22 ------ |