Browse Source

builtin-grep.c cleanup

Removes conditional return.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
David Rientjes 18 years ago committed by Junio C Hamano
parent
commit
b756776d19
  1. 4
      builtin-grep.c

4
builtin-grep.c

@ -390,9 +390,7 @@ static int buffer_is_binary(const char *ptr, unsigned long size) @@ -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)

Loading…
Cancel
Save