runtime: initialize the variable

gcc thinks this could be uninitialized; make it so.
This commit is contained in:
Edward Thomson
2026-05-10 21:07:23 +01:00
parent 6a4f3ea48e
commit 034fb30783

View File

@@ -110,7 +110,7 @@ GIT_INLINE(int) init_unlock(void)
int git_runtime_init(git_runtime_init_fn init_fns[], size_t cnt)
{
int ret;
int ret = 0;
if (init_lock() < 0)
return -1;