Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /
Date: Sun, 19 Jan 2020 12:37:21
Message-Id: 1579435217.6375888fb82710a5f158dd84383a0b1e8d41299f.grobian@gentoo
1 commit: 6375888fb82710a5f158dd84383a0b1e8d41299f
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 19 12:00:17 2020 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 19 12:00:17 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=6375888f
7
8 qgrep: fix Coverity 206568 Logically dead code
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 qgrep.c | 5 +----
13 1 file changed, 1 insertion(+), 4 deletions(-)
14
15 diff --git a/qgrep.c b/qgrep.c
16 index 019b0b6..699f35b 100644
17 --- a/qgrep.c
18 +++ b/qgrep.c
19 @@ -240,10 +240,7 @@ qgrep_grepat(int fd, const char *file, const char *label,
20 return status;
21
22 count = 0;
23 - /* if there have been some matches already, then a
24 - * separator will be needed */
25 - need_separator =
26 - !status && (a->num_lines_before || a->num_lines_after);
27 + need_separator = 0;
28 /* whatever is in the circular buffers list is no more a
29 * valid context */
30 qgrep_buf_list_invalidate(a->buf_list);