Changeset 1968 for trunk/src/kmk/main.c


Ignore:
Timestamp:
Oct 26, 2008, 10:29:56 PM (17 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.