Commit 586f71ef2e6b1264c4dc7bc8270c2b7257675eb3

Vicent Martí 2013-01-22T23:03:53

Merge pull request #1273 from sba1/example-diff-fix Don't clear the opt instance in the diff example.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/examples/diff.c b/examples/diff.c
index 63956aa..17bf842 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) {