diff options
author | Russell Belfer <rb@github.com> | 2014-02-07 15:24:39 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-02-07 15:43:37 -0800 |
commit | 3158e2febe87787dc7804b5670f4dc53aeca87ed (patch) | |
tree | bc3299249f84561c3d4cb1dd6d35f5282d86cfdc /src/pathspec.c | |
parent | c4ee3b54f803c1cfc957cdc8a2a5ca9c0c47e1d7 (diff) | |
download | libgit2-3158e2febe87787dc7804b5670f4dc53aeca87ed.tar.gz |
Fix some Windows warnings
This fixes a number of warnings with the Windows 64-bit build
including a test failure in test_repo_message__message where an
invalid pointer to a git_buf was being used.
Diffstat (limited to 'src/pathspec.c')
-rw-r--r-- | src/pathspec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathspec.c b/src/pathspec.c index bee320576..471488495 100644 --- a/src/pathspec.c +++ b/src/pathspec.c @@ -445,7 +445,7 @@ static int pathspec_match_from_iterator( /* check if path is ignored and untracked */ if (index != NULL && git_iterator_current_is_ignored(iter) && - git_index__find(NULL, index, entry->path, strlen(entry->path), GIT_INDEX_STAGE_ANY) < 0) + git_index__find(NULL, index, entry->path, 0, GIT_INDEX_STAGE_ANY) < 0) continue; /* mark the matched pattern as used */ |