summaryrefslogtreecommitdiff
path: root/src/hash.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-07-26 21:12:00 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-07-28 09:31:00 +0200
commitf85fc367e01eb0f5918263b1fcdfc8b7d16065c1 (patch)
tree3c78c3f0d4720b186a56f79c55cd3f31dc530fe5 /src/hash.c
parent2dfd5eae33e079bc92a15ccfd561901ea7b69e45 (diff)
downloadlibgit2-cmn/error-buffer.tar.gz
error: store the error messages in a reusable buffercmn/error-buffer
Instead of allocating a brand new buffer for each error string we want to store, we can use a per-thread buffer to store the error string and re-use the underlying storage. We already use the buffer to format the string, so this mostly makes that more direct.
Diffstat (limited to 'src/hash.c')
0 files changed, 0 insertions, 0 deletions