VirtualBox

Changeset 1911 in kBuild


Ignore:
Timestamp:
Oct 22, 2008 8:54:02 PM (16 years ago)
Author:
bird
Message:

read.c: don't allocate the ifdef/ifndef variable, just use the current variable buffer like below.

File:
1 edited

Legend:

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

    r1898 r1911  
    19671967      var = allocated_variable_expand (line);
    19681968#else
    1969       var = allocated_variable_expand_2 (line, eol - line, NULL);
     1969      var = variable_expand_string_2 (NULL, line, eol - line, &p);
    19701970#endif
    19711971
     
    19831983        ((v != 0 && *v->value != '\0') == (cmdtype == c_ifndef));
    19841984
     1985#ifndef CONFIG_WITH_VALUE_LENGTH
    19851986      free (var);
     1987#endif
    19861988    }
    19871989#ifdef CONFIG_WITH_IF_CONDITIONALS
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette