vendor/libgit2/src/threadstate.c in rugged-1.3.2.3 vs vendor/libgit2/src/threadstate.c in rugged-1.4.2

- old
+ new

@@ -34,12 +34,12 @@ static void threadstate_dispose(git_threadstate *threadstate) { if (!threadstate) return; - if (threadstate->error_t.message != git_buf__initbuf) - git__free(threadstate->error_t.message); + if (threadstate->error_t.message != git_str__initstr) + git__free(threadstate->error_t.message); threadstate->error_t.message = NULL; } static void GIT_SYSTEM_CALL threadstate_free(void *threadstate) { @@ -74,10 +74,10 @@ if ((threadstate = git_tlsdata_get(tls_key)) != NULL) return threadstate; if ((threadstate = git__calloc(1, sizeof(git_threadstate))) == NULL || - git_buf_init(&threadstate->error_buf, 0) < 0) + git_str_init(&threadstate->error_buf, 0) < 0) return NULL; git_tlsdata_set(tls_key, threadstate); return threadstate; }