diff options
author | David Rientjes <rientjes@google.com> | 2006-08-14 13:22:15 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-14 18:38:07 -0700 |
commit | b756776d19356a961cc3d1861b15720a6d0e8462 (patch) | |
tree | 1a0f03ff406b29cb3752a8f1b660445fb430e126 /builtin-grep.c | |
parent | b4e275992f7ea56b7944abb2b9339c7f6f5c9423 (diff) | |
download | git-b756776d19356a961cc3d1861b15720a6d0e8462.tar.gz |
builtin-grep.c cleanup
Removes conditional return.
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-grep.c')
-rw-r--r-- | builtin-grep.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin-grep.c b/builtin-grep.c index a561612e7e..3ec99b7010 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -390,9 +390,7 @@ static int buffer_is_binary(const char *ptr, unsigned long size) { if (FIRST_FEW_BYTES < size) size = FIRST_FEW_BYTES; - if (memchr(ptr, 0, size)) - return 1; - return 0; + return !!memchr(ptr, 0, size); } static int fixmatch(const char *pattern, char *line, regmatch_t *match) |