diff options
author | Jim Meyering <meyering@redhat.com> | 2009-12-24 18:50:03 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-01-06 10:34:59 +0100 |
commit | 9b6eef3cab44138d379481d0977964aa30b4b2f7 (patch) | |
tree | db9a5ee2b7fc2085def08c59891c1326b527d283 /src | |
parent | d78d378447ff0022238b4b38e89f50d28a47d550 (diff) | |
download | grep-9b6eef3cab44138d379481d0977964aa30b4b2f7.tar.gz |
fix a possible bug: remove errant semicolon
* src/grep.c (prline): Remove erroneous semicolon-after-if-expr.
Diffstat (limited to 'src')
-rw-r--r-- | src/grep.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -912,7 +912,8 @@ prline (char const *beg, char const *lim, int sep) if (matching && (only_matching || *match_color)) beg = print_line_middle(beg, lim, line_color, match_color); - if (!only_matching && *line_color); + /* FIXME: this test may be removable. */ + if (!only_matching && *line_color) beg = print_line_tail(beg, lim, line_color); } |