Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
strbuf: add strbuf_tolower function
[gitweb.git]
/
diff-no-index.c
diff --git
a/diff-no-index.c
b/diff-no-index.c
index c554691df0bdb46eee26b4ca4c957fa86fc9f8c4..265709ba8c51a4390fad11c7d1aa23551a4fd266 100644
(file)
--- a/
diff-no-index.c
+++ b/
diff-no-index.c
@@
-198,7
+198,7
@@
void diff_no_index(struct rev_info *revs,
i++;
else {
j = diff_opt_parse(&revs->diffopt, argv + i, argc - i);
- if (
!j
)
+ if (
j <= 0
)
die("invalid diff option/value: %s", argv[i]);
i += j;
}