]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/submodule--helper.c
*.h: move some *_INIT to designated initializers
[thirdparty/git.git] / builtin / submodule--helper.c
index deca75c83ee9a8ea3d0086935c9a1908c1cfca14..57f09925157c4aa1f14129d2c64bb8045030028b 100644 (file)
@@ -1647,8 +1647,9 @@ struct submodule_alternate_setup {
        } error_mode;
        struct string_list *reference;
 };
-#define SUBMODULE_ALTERNATE_SETUP_INIT { NULL, \
-       SUBMODULE_ALTERNATE_ERROR_IGNORE, NULL }
+#define SUBMODULE_ALTERNATE_SETUP_INIT { \
+       .error_mode = SUBMODULE_ALTERNATE_ERROR_IGNORE, \
+}
 
 static const char alternate_error_advice[] = N_(
 "An alternate computed from a superproject's alternate is invalid.\n"