summaryrefslogtreecommitdiff
path: root/tests/libgit2/diff/blob.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-12-08 19:28:44 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-13 14:09:25 +0100
commit4f76ef568d74c63031eb42fc10bf08b5641e5f0b (patch)
tree7b96d7c1bdf5508c40c22d7517e17da1fe779418 /tests/libgit2/diff/blob.c
parentce488be46e4cd2aeeb69c39a062fae1ba9a302f6 (diff)
downloadlibgit2-4f76ef568d74c63031eb42fc10bf08b5641e5f0b.tar.gz
oid: don't assume thread local state was initialized
git_oid_tostr_s could fail if thread-local state initialization fails. In that case, it will now return `NULL`. Callers should check for `NULL` and propagate the failure.
Diffstat (limited to 'tests/libgit2/diff/blob.c')
0 files changed, 0 insertions, 0 deletions