Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7bd157

Browse files
committed
tests: fix warning for nested struct initialization
1 parent a27f31d commit a7bd157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/index/racy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static void setup_uptodate_files(void)
178178
{
179179
git_buf path = GIT_BUF_INIT;
180180
git_index *index;
181-
git_index_entry new_entry = {0};
181+
git_index_entry new_entry = {{0}};
182182

183183
cl_git_pass(git_repository_index(&index, g_repo));
184184

0 commit comments

Comments
 (0)