diff options
| author | Ben Straub <bs@github.com> | 2012-11-29 20:12:59 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-11-30 13:12:15 -0800 |
| commit | 79cfa20d60cfdaf578da59cfb4d17551cf1b6256 (patch) | |
| tree | 128cdc157ae65579ebf11346d3dc8a35832fdb57 /src/stash.c | |
| parent | b4d136527c2210f1abbcc53ab7290ad38029ab3c (diff) | |
| download | libgit2-79cfa20d60cfdaf578da59cfb4d17551cf1b6256.tar.gz | |
Deploy GIT_STATUS_OPTIONS_INIT
Diffstat (limited to 'src/stash.c')
| -rw-r--r-- | src/stash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stash.c b/src/stash.c index 261d3b199..98c7a7c93 100644 --- a/src/stash.c +++ b/src/stash.c @@ -471,9 +471,8 @@ static int ensure_there_are_changes_to_stash( bool include_ignored_files) { int error; - git_status_options opts; + git_status_options opts = GIT_STATUS_OPTIONS_INIT; - memset(&opts, 0, sizeof(opts)); opts.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR; if (include_untracked_files) opts.flags = GIT_STATUS_OPT_INCLUDE_UNTRACKED | |
