summaryrefslogtreecommitdiff
path: root/src/libgit2/oid.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-12-08 19:46:25 +0000
committerEdward Thomson <edward.thomson@vercel.com>2023-02-14 16:14:17 +0000
commit2aed803e7fbdf5ca3cb1eb1c74b16d5b5f2a38dc (patch)
tree13aae882a6157f12fa05d7f5334adbd28eb50673 /src/libgit2/oid.c
parent02a909f4a0d3f3da28e35bdf90c1f4598b76daf6 (diff)
downloadlibgit2-ethomson/tlsdata_fail.tar.gz
threadstate: don't use an unnecessary macroethomson/tlsdata_fail
Now that we've reduced the usage of GIT_THREADSTATE, remove it entirely in favor of git_threadstate_get().
Diffstat (limited to 'src/libgit2/oid.c')
-rw-r--r--src/libgit2/oid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/oid.c b/src/libgit2/oid.c
index ab758fff4..631a566eb 100644
--- a/src/libgit2/oid.c
+++ b/src/libgit2/oid.c
@@ -155,7 +155,7 @@ int git_oid_pathfmt(char *str, const git_oid *oid)
char *git_oid_tostr_s(const git_oid *oid)
{
- git_threadstate *threadstate = GIT_THREADSTATE;
+ git_threadstate *threadstate = git_threadstate_get();
char *str;
if (!threadstate)