VirtualBox

Changeset 1968 in kBuild for trunk


Ignore:
Timestamp:
Oct 26, 2008 9:29:56 PM (16 years ago)
Author:
bird
Message:

kmk: main.c, variable.c: shell_var must have a valid name length or we'll get duplicates in target_environment(). fixed strcache issue with it as well.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/main.c

    r1965 r1968  
    16171617                v->export = v_noexport;
    16181618#endif
     1619#ifndef CONFIG_WITH_STRCACHE2
    16191620                shell_var.name = "SHELL";
     1621#else
     1622                shell_var.name = v->name;
     1623#endif
     1624                shell_var.length = 5; /* bird - gotta set the length too! */
     1625#ifndef CONFIG_WITH_VALUE_LENGTH
    16201626                shell_var.value = xstrdup (ep + 1);
     1627#else
     1628                shell_var.value = savestring (v->value, v->value_length);
     1629                shell_var.value_length = v->value_length;
     1630#endif
     1631
    16211632              }
    16221633
  • trunk/src/kmk/variable.c

    r1949 r1968  
    15331533            new_slot = (struct variable **) hash_find_slot (&table, v);
    15341534#else  /* CONFIG_WITH_STRCACHE2 */
     1535            assert (strcache2_is_cached (&variable_strcache, v->name));
    15351536            new_slot = (struct variable **) hash_find_slot_strcached (&table, v);
    15361537#endif /* CONFIG_WITH_STRCACHE2 */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette