Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bauer <mail@sebastianbauer.info>2013-01-23 10:47:40 +0400
committerSebastian Bauer <mail@sebastianbauer.info>2013-01-23 10:47:40 +0400
commit75a0a80029fad65fdeb3af75ab0f5db93670221a (patch)
treec37e223ef3e10c1c959aad8003cd9a6d5fe30eb9 /examples/diff.c
parentb101fbf9a403f38556ed9e6d3b293c73733465e2 (diff)
Don't clear the opt instance in the diff example.
The version field is overwritten otherwise. The opt instance is already initialized properly.
Diffstat (limited to 'examples/diff.c')
-rw-r--r--examples/diff.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/diff.c b/examples/diff.c
index 63956aa4e..17bf8427e 100644
--- a/examples/diff.c
+++ b/examples/diff.c
@@ -138,8 +138,6 @@ int main(int argc, char *argv[])
int i, color = -1, compact = 0, cached = 0;
char *a, *dir = ".", *treeish1 = NULL, *treeish2 = NULL;
- memset(&opts, 0, sizeof(opts));
-
/* parse arguments as copied from git-diff */
for (i = 1; i < argc; ++i) {