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 1A6221382C5 for ; Thu, 5 Apr 2018 12:47:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2094AE0C4E; Thu, 5 Apr 2018 12:47:00 +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 F0920E0C4E for ; Thu, 5 Apr 2018 12:46:59 +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 1E76C335C61 for ; Thu, 5 Apr 2018 12:46:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F1ABB279 for ; Thu, 5 Apr 2018 12:46:55 +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: <1522932239.85f7604d713d1c7fce3ea31798faee4487a90dc7.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/atom_explode.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 85f7604d713d1c7fce3ea31798faee4487a90dc7 X-VCS-Branch: master Date: Thu, 5 Apr 2018 12:46:55 +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-Archives-Salt: 19d63bf6-6a6e-44d2-a99e-55ec7ec87444 X-Archives-Hash: bf5883856aaf2a03e189dc6cc649e681 commit: 85f7604d713d1c7fce3ea31798faee4487a90dc7 Author: Fabian Groffen gentoo org> AuthorDate: Thu Apr 5 12:43:59 2018 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Apr 5 12:43:59 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=85f7604d atom_explode: properly set fields for no-version case atom_explode/basic test wasn't run due to no dependencies in Makefile, hence I didn't see this before libq/atom_explode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libq/atom_explode.c b/libq/atom_explode.c index e52f149..faf24ff 100644 --- a/libq/atom_explode.c +++ b/libq/atom_explode.c @@ -200,6 +200,8 @@ atom_explode(const char *atom) if (ptr == NULL) { /* atom has no version, this is it */ + strcpy(ret->P, ret->PN); + ret->PVR = NULL; return ret; } ret->PV = ptr;