summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e0ec82)
raw | patch | inline | side by side (parent: 9e0ec82)
author | David Rientjes <rientjes@google.com> | |
Mon, 14 Aug 2006 20:34:16 +0000 (13:34 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 15 Aug 2006 01:38:07 +0000 (18:38 -0700) |
Removes conditional return.
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | patch | blob | history |
index 8861b853e70ab511fdcab16d97687aafc99ec000..2327e6065b548ffb89136bda8b054e7b61d47c46 100644 (file)
--- a/diff.c
+++ b/diff.c
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,