summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-12-24 18:50:03 +0100
committerJim Meyering <meyering@redhat.com>2010-01-06 10:34:59 +0100
commit9b6eef3cab44138d379481d0977964aa30b4b2f7 (patch)
treedb9a5ee2b7fc2085def08c59891c1326b527d283 /src
parentd78d378447ff0022238b4b38e89f50d28a47d550 (diff)
downloadgrep-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grep.c b/src/grep.c
index da469e28..a20383d3 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -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);
}