{"thread":{"id":"5254","subject":"[PATCH 05/28] builtin-grep.c cleanup","startedAt":"2006-08-14T20:22:15Z","lastAt":"2006-08-14T20:22:15Z","messageCount":1,"participants":["David Rientjes"],"isPatch":true,"patchVersion":1,"patchTotal":28},"messages":[{"id":"25285","messageId":"Pine.LNX.4.63.0608141321250.19383@chino.corp.google.com","threadId":"5254","inReplyTo":null,"subject":"[PATCH 05/28] builtin-grep.c cleanup","fromName":"David Rientjes","fromEmail":"rientjes@google.com","sentAt":"2006-08-14T20:22:15Z","receivedAt":"2006-08-14T20:22:15Z","isPatch":true,"sender":{"key":"rientjes@google.com","avatar":null},"body":"Removes conditional return.\n\n\t\tDavid\n\nSigned-off-by: David Rientjes <rientjes@google.com>\n---\n builtin-grep.c |    4 +---\n 1 files changed, 1 insertions(+), 3 deletions(-)\n\ndiff --git a/builtin-grep.c b/builtin-grep.c\nindex a561612..3ec99b7 100644\n--- a/builtin-grep.c\n+++ b/builtin-grep.c\n@@ -390,9 +390,7 @@ static int buffer_is_binary(const char *\n {\n \tif (FIRST_FEW_BYTES < size)\n \t\tsize = FIRST_FEW_BYTES;\n-\tif (memchr(ptr, 0, size))\n-\t\treturn 1;\n-\treturn 0;\n+\treturn !!memchr(ptr, 0, size);\n }\n \n static int fixmatch(const char *pattern, char *line, regmatch_t *match)\n-- \n1.4.2.g89bb-dirty\n"}]}