Changeset 1946 for trunk/src/kmk/read.c
- Timestamp:
- Oct 26, 2008, 4:09:15 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/read.c
r1931 r1946 2445 2445 { 2446 2446 struct variable *gv; 2447 #ifndef CONFIG_WITH_STRCACHE2 2447 2448 int len = strlen(v->name); 2449 #else 2450 int len = strcache2_get_len (&variable_strcache, v->name); 2451 #endif 2448 2452 2449 2453 gv = lookup_variable (v->name, len); 2450 2454 if (gv && (gv->origin == o_env_override || gv->origin == o_command)) 2451 2455 { 2456 #ifdef CONFIG_WITH_RDONLY_VARIABLE_VALUE 2457 assert (!v->rdonly_val); /* paranoia */ 2458 #endif 2452 2459 if (v->value != 0) 2453 2460 free (v->value); 2461 #ifndef CONFIG_WITH_VALUE_LENGTH 2454 2462 v->value = xstrdup (gv->value); 2463 #else 2464 v->value = savestring (gv->value, gv->value_length); 2465 v->value_length = gv->value_length; 2466 #endif 2455 2467 v->origin = gv->origin; 2456 2468 v->recursive = gv->recursive;
Note:
See TracChangeset
for help on using the changeset viewer.