summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-02-13 13:31:37 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-13 13:31:37 +0100
commitcdb2c2a0bf9428ea188959f332e9f541a2fb2af1 (patch)
treeaa49117b758d17c8a4961e6fd030cff3ea07dfba /include/git2/commit.h
parent4f9f8e0dc9ca8a912fe1b32aeca545d25790d3fe (diff)
downloadlibgit2-cdb2c2a0bf9428ea188959f332e9f541a2fb2af1.tar.gz
buffer: clarify how `git_buf_sanitize` handles non-NULL input
When `git_buf_sanitize` gets called, it converts a buffer with NULL content to be correctly initialized. This is done by pointing it to `git_buf__initbuf`. While the method's documentation states this clearly, it may also lead to the conclusion that it will do the same to buffers which do _not_ have NULL contents. Clarify behavior when passing a buffer with non-NULL contents, where `git_buf_sanitize` will ensure that the contents are `\0`-terminated.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions