Ignore:
Timestamp:
Oct 24, 2008, 10:22:22 PM (17 years ago)
Author:
bird
Message:

kmk: Made struct variable capable of holding read only variables to speed up set_file_variables.

File:
1 edited

Legend:

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

    r1931 r1932  
    976976
    977977      /* Replace the variable with the variable buffer. */
    978       free (v->value);
     978#ifdef CONFIG_WITH_RDONLY_VARIABLE_VALUE
     979      if (v->rdonly_val)
     980        v->rdonly_val = 0;
     981      else
     982#endif
     983        free (v->value);
    979984      v->value = variable_buffer;
    980985      v->value_length = p - v->value;
Note: See TracChangeset for help on using the changeset viewer.