From 099e62ca03198b25e5b37445511d023bd6884178 Mon Sep 17 00:00:00 2001 From: Ryan Pham Date: Tue, 24 Dec 2024 10:42:56 +0900 Subject: [PATCH] remote: Don't use designated initializer --- tests/libgit2/remote/fetch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/libgit2/remote/fetch.c b/tests/libgit2/remote/fetch.c index a24f09925..6b7cec923 100644 --- a/tests/libgit2/remote/fetch.c +++ b/tests/libgit2/remote/fetch.c @@ -205,10 +205,7 @@ static void do_fetch_repo_with_ref_matching_negative_refspec(git_oid *commit1id) /* fetch the remote with negative refspec for references prefixed with '_' */ { char *refspec_strs = { NEGATIVE_SPEC }; - git_strarray refspecs = { - .count = 1, - .strings = &refspec_strs, - }; + git_strarray refspecs = { &refspec_strs, 1 }; git_remote *remote;