diff options
| author | Ben Straub <bs@github.com> | 2012-11-29 15:05:04 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-11-30 13:12:14 -0800 |
| commit | 2f8d30becb4801d869188d2d46ca1512843e8698 (patch) | |
| tree | 603ee4d64529de316e1c83914705e83d46b38cad /src/status.c | |
| parent | 691776213947e59a3928aab09e97a64b65e990ab (diff) | |
| download | libgit2-2f8d30becb4801d869188d2d46ca1512843e8698.tar.gz | |
Deploy GIT_DIFF_OPTIONS_INIT
Diffstat (limited to 'src/status.c')
| -rw-r--r-- | src/status.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/status.c b/src/status.c index c7dea2c71..ca500c5cb 100644 --- a/src/status.c +++ b/src/status.c @@ -108,7 +108,7 @@ int git_status_foreach_ext( void *payload) { int err = 0; - git_diff_options diffopt; + git_diff_options diffopt = GIT_DIFF_OPTIONS_INIT; git_diff_list *idx2head = NULL, *wd2idx = NULL; git_tree *head = NULL; git_status_show_t show = @@ -126,7 +126,6 @@ int git_status_foreach_ext( !(err == GIT_ENOTFOUND || err == GIT_EORPHANEDHEAD)) return err; - memset(&diffopt, 0, sizeof(diffopt)); memcpy(&diffopt.pathspec, &opts->pathspec, sizeof(diffopt.pathspec)); diffopt.flags = GIT_DIFF_INCLUDE_TYPECHANGE; |
