[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ncurses-5.9-20120622.patch.gz
From: |
Sven Joachim |
Subject: |
Re: ncurses-5.9-20120622.patch.gz |
Date: |
Sat, 23 Jun 2012 08:53:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
On 2012-06-23 02:41 +0200, Thomas Dickey wrote:
> + fix caching of environment variables in database-iterator (patch by
> Philippe Troin, Redhat #831366).
Is the following code in update_getenv() intentional? Calling
getenv(name) twice looks rather redundant.
,----
| char *value = getenv(name);
|
| if ((value = getenv(name)) == 0 || (value = strdup(value)) == 0) {
`----
Cheers,
Sven