Merge pull request #1273 from sba1/example-diff-fix

Don't clear the opt instance in the diff example.
This commit is contained in:
Vicent Martí 2013-01-22 23:03:53 -08:00
commit 586f71ef2e

View File

@ -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) {