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 35F2F139082 for ; Mon, 27 Nov 2017 07:56:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67DEFE08C3; Mon, 27 Nov 2017 07:56:02 +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 46776E08C3 for ; Mon, 27 Nov 2017 07:56:02 +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 F38CC33D3C7 for ; Mon, 27 Nov 2017 07:56:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B9483A914 for ; Mon, 27 Nov 2017 07:55:59 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1511769237.89524269b57888bb86a34c6fd7ef0422699fd30b.robbat2@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qgrep.c X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 89524269b57888bb86a34c6fd7ef0422699fd30b X-VCS-Branch: master Date: Mon, 27 Nov 2017 07:55:59 +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: fe886e6d-b68f-4f4d-a8ff-4e236c396405 X-Archives-Hash: e15a5426ab7391a0ed5972a692605df0 commit: 89524269b57888bb86a34c6fd7ef0422699fd30b Author: Robin H. Johnson gentoo org> AuthorDate: Mon Nov 27 07:53:57 2017 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Nov 27 07:53:57 2017 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=89524269 Fix -Wmaybe-uninitialized. In file included from include_applets.h:13:0, from main.c:1485: qgrep.c: In function ‘qgrep_main’: qgrep.c:212:5: warning: ‘dentry’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (*cat_dirent_pt == NULL || *cat_dir_pt == NULL) ^ qgrep.c:245:17: note: ‘dentry’ was declared here struct dirent *dentry; Signed-off-by: Robin H. Johnson gentoo.org> qgrep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qgrep.c b/qgrep.c index 9d2752e..0680035 100644 --- a/qgrep.c +++ b/qgrep.c @@ -242,7 +242,7 @@ int qgrep_main(int argc, char **argv) DIR *eclass_dir = NULL; DIR *vdb_dir = NULL; DIR *cat_dir = NULL; - struct dirent *dentry; + struct dirent *dentry = NULL; char ebuild[_Q_PATH_MAX]; char name[_Q_PATH_MAX]; char *label;