NetBSD Problem Report #44795
From www@NetBSD.org Wed Mar 30 12:12:04 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 42BB463B9E6
for <gnats-bugs@gnats.NetBSD.org>; Wed, 30 Mar 2011 12:12:04 +0000 (UTC)
Message-Id: <20110330121203.5D12F63B898@www.NetBSD.org>
Date: Wed, 30 Mar 2011 12:12:03 +0000 (UTC)
From: henning.petersen@t-online.de
Reply-To: henning.petersen@t-online.de
To: gnats-bugs@NetBSD.org
Subject: Remove unused variable.
X-Send-Pr-Version: www-1.0
>Number: 44795
>Category: bin
>Synopsis: Remove unused variable.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 30 12:15:00 +0000 2011
>Closed-Date: Sat Apr 02 07:59:32 +0000 2011
>Last-Modified: Sat Apr 02 08:00:03 +0000 2011
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Remove unused variable in make/util.c.
>How-To-Repeat:
>Fix:
diff -u -r1.50 util.c
--- usr.bin/make/util.c 3 Jun 2010 15:40:16 -0000 1.50
+++ usr.bin/make/util.c 30 Mar 2011 11:01:18 -0000
@@ -46,7 +46,7 @@
findenv(const char *name, int *offset)
{
size_t i, len;
- char *p, *q;
+ char *q;
for (i = 0; (q = environ[i]); i++) {
char *p = strchr(q, '=');
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mbalmer@NetBSD.org
State-Changed-When: Sat, 02 Apr 2011 07:59:32 +0000
State-Changed-Why:
slightly different fix committed, thanks.
From: "Marc Balmer" <mbalmer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44795 CVS commit: src/usr.bin/make
Date: Sat, 2 Apr 2011 07:58:31 +0000
Module Name: src
Committed By: mbalmer
Date: Sat Apr 2 07:58:31 UTC 2011
Modified Files:
src/usr.bin/make: util.c
Log Message:
Declare variable only once. Fixes PR 44795.
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/usr.bin/make/util.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.