diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-12-08 19:28:44 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-05-13 14:09:25 +0100 |
commit | 4f76ef568d74c63031eb42fc10bf08b5641e5f0b (patch) | |
tree | 7b96d7c1bdf5508c40c22d7517e17da1fe779418 /tests/libgit2/diff/blob.c | |
parent | ce488be46e4cd2aeeb69c39a062fae1ba9a302f6 (diff) | |
download | libgit2-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