From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 92D70138334 for ; Tue, 14 May 2019 20:19:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97365E08BB; Tue, 14 May 2019 20:19:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7326EE08BB for ; Tue, 14 May 2019 20:19:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B149F344441 for ; Tue, 14 May 2019 20:19:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F1D6755B for ; Tue, 14 May 2019 20:19:32 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1557864871.cf2affbb7bc8b84160f618b55cad0332c32b6d3a.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/dep.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: cf2affbb7bc8b84160f618b55cad0332c32b6d3a X-VCS-Branch: master Date: Tue, 14 May 2019 20:19:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 17671370-7039-43e3-bdbb-e27626af159f X-Archives-Hash: f4196cddee922811c6b3f0c62c1e8981 commit: cf2affbb7bc8b84160f618b55cad0332c32b6d3a Author: Fabian Groffen gentoo org> AuthorDate: Tue May 14 20:14:31 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Tue May 14 20:14:31 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=cf2affbb libq/dep: fix highlighting all deps when match atom array is empty Signed-off-by: Fabian Groffen gentoo.org> libq/dep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libq/dep.c b/libq/dep.c index 76d7b1e..49edf10 100644 --- a/libq/dep.c +++ b/libq/dep.c @@ -244,7 +244,9 @@ dep_print_tree( if (root->type == DEP_OR) fprintf(fp, "|| ("); if (root->info) { - if (hlatoms != NULL && root->type == DEP_NORM) { + if (hlatoms != NULL && array_cnt(hlatoms) > 0 && + root->type == DEP_NORM) + { size_t i; depend_atom *m; char *oslot;