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 3907B138334 for ; Wed, 26 Jun 2019 19:32:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72471E0866; Wed, 26 Jun 2019 19:32:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 5B0F9E0866 for ; Wed, 26 Jun 2019 19:32:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 EC22D346663 for ; Wed, 26 Jun 2019 19:32:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D5C9355B for ; Wed, 26 Jun 2019 19:32:44 +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: <1561577487.6be83e89c43dd6bcc7f2a8b71ccf772842689694.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: main.c X-VCS-Directories: / X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 6be83e89c43dd6bcc7f2a8b71ccf772842689694 X-VCS-Branch: master Date: Wed, 26 Jun 2019 19:32:44 +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: 28bdb387-8cb2-4465-b783-487276ec5295 X-Archives-Hash: 1f87349f6c67e5333ac50fa997e719d6 commit: 6be83e89c43dd6bcc7f2a8b71ccf772842689694 Author: Fabian Groffen gentoo org> AuthorDate: Wed Jun 26 19:31:27 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Wed Jun 26 19:31:27 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=6be83e89 main: push pointer for static object main_overlay In `q -o` we compare check the main overlay by checking the pointers, which won't work if we made a copy of it. Signed-off-by: Fabian Groffen gentoo.org> main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index f9dfb6d..fd4a60b 100644 --- a/main.c +++ b/main.c @@ -747,7 +747,7 @@ initialize_portage_env(void) if (orig_main_overlay != main_overlay) free(orig_main_overlay); if (array_cnt(overlays) == 0) { - xarraypush_str(overlays, main_overlay); + xarraypush_ptr(overlays, main_overlay); xarraypush_str(overlay_names, ""); }