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/variable.c

    r1610 r1617  
    16011601  int done_1st_prepend_copy = 0;
    16021602
     1603  /* Drop empty strings. Use $(NO_SUCH_VARIABLE) if a space is wanted. */
     1604  if (!value_len)
     1605      return;
     1606
    16031607  /* adjust the size. */
    16041608  if ((unsigned)v->value_alloc_len <= new_value_len + 1)
Note: See TracChangeset for help on using the changeset viewer.