Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Git.pm: Kill Git.xs for now
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 8861b853e70ab511fdcab16d97687aafc99ec000..2327e6065b548ffb89136bda8b054e7b61d47c46 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-904,9
+904,7
@@
static int mmfile_is_binary(mmfile_t *mf)
long sz = mf->size;
if (FIRST_FEW_BYTES < sz)
sz = FIRST_FEW_BYTES;
- if (memchr(mf->ptr, 0, sz))
- return 1;
- return 0;
+ return !!memchr(mf->ptr, 0, sz);
}
static void builtin_diff(const char *name_a,