Ignore:
Timestamp:
May 12, 2008, 7:07:26 PM (17 years ago)
Author:
bird
Message:

Don't append empty strings to variables. (foo +=)

File:
1 edited

Legend:

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

    r1610 r1617  
    616616    /* fast path */
    617617    append_string_to_variable (v,value, value_len, append);
    618   else
     618  else if (value_len)
    619619    {
    620620      unsigned int off_dollar = p - (char *)value;
     
    662662      restore_variable_buffer (saved_buffer, saved_buffer_length);
    663663    }
     664  /* else: Drop empty strings. Use $(NO_SUCH_VARIABLE) if a space is wanted. */
    664665}
    665666#endif /* CONFIG_WITH_VALUE_LENGTH */
Note: See TracChangeset for help on using the changeset viewer.