[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #31743] ?= operator doesn't work correctly with 3.82
From: |
Mounir Lamouri |
Subject: |
Re: [bug #31743] ?= operator doesn't work correctly with 3.82 |
Date: |
Tue, 30 Nov 2010 19:39:45 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101030 Lightning/1.0b3pre Thunderbird/3.1.6 |
On 11/30/2010 07:17 PM, Paul Smith wrote:
> I fixed this and checked the fix into CVS. Unfortunately due to the
> Savannah compromise the website is down for a while so I can't update
> the bug. But, you can check out the new CVS code. Or, if you prefer,
> you can apply the fix yourself (it's simple):
>
>
> --- read.c 6 Nov 2010 21:56:24 -0000 1.195
> +++ read.c 30 Nov 2010 14:48:53 -0000 1.196
> @@ -1802,7 +1802,8 @@
> int len = strlen(v->name);
>
> gv = lookup_variable (v->name, len);
> - if (gv && (gv->origin == o_env_override || gv->origin ==
> o_command))
> + if (gv && v != gv
> + && (gv->origin == o_env_override || gv->origin == o_command))
> {
> if (v->value != 0)
> free (v->value);
I confirm that this patch is fixing the issue (applied on top of 3.82).
Thanks a lot for your reactivity :)
--
Mounir
- Re: [bug #31743] ?= operator doesn't work correctly with 3.82,
Mounir Lamouri <=