8000 MSVC please ? · libgit2/libgit2@2e6c89e · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e6c89e

Browse files
committed
MSVC please ?
1 parent d181f05 commit 2e6c89e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hook.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static int hook_execute_va(git_buf *io, git_repository *repo, const char *name,
179179
int err = 0;
180180
char *arg;
181181
git_vector arg_vector = GIT_VECTOR_INIT;
182-
git_hook_env env = {};
182+
git_hook_env env = {0};
183183

184184
assert(repo && name);
185185

tests/hook/call.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int hook_exec__pre_rebase(git_hook_env *env, void *payload)
3636
{
3737
GIT_UNUSED(payload);
3838

39-
if (strcasestr(env->args.strings[0], "master") != NULL) {
39+
if (strstr(env->args.strings[0], "master") != NULL) {
4040
return -1;
4141
}
4242

0 commit comments

Comments
 (0)
0