bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #24655] shell_var.length isn't set causing duplicates from target_e


From: Knut St. Osmundsen
Subject: [bug #24655] shell_var.length isn't set causing duplicates from target_environment.
Date: Sun, 26 Oct 2008 22:02:32 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_4; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1

URL:
  <http://savannah.gnu.org/bugs/?24655>

                 Summary: shell_var.length isn't set causing duplicates from
target_environment.
                 Project: make
            Submitted by: bird_tori
            Submitted on: Sun 26 Oct 2008 11:02:30 PM CET
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: Any
           Fixed Release: None

    _______________________________________________________

Details:

target_environment() uses a temporary hash table for collecting exported
variables from the sets.   This table uses variable_hash_1 and variable_hash_2
which expect the struct variable::length field to be correct and will generate
incorrect values for the shell_var since its length field is 0.

The result is, for instance, that the last test in
tests/scripts/variables/SHELL exports the wrong SHELL variable.

The fix is very simple, just initialize shell_var.length to 5 in main.c (line
1189 in r1.227). 




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24655>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]