VirtualBox

Changeset 2327 in kBuild


Ignore:
Timestamp:
Apr 10, 2009 4:19:39 PM (16 years ago)
Author:
bird
Message:

Backported 2276: kmk: Do not crash if is missing the 3rd argument, it is supposed to be optional... References #85

Location:
branches/kBuild-0.1.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/kBuild-0.1.5

    • Property svn:mergeinfo changed
      /trunkmerged: 2276
  • branches/kBuild-0.1.5/src/kmk/function.c

    r2172 r2327  
    42284228
    42294229  /* Evaluate the condition in argv[0] and expand the 2nd or
    4230      3rd argument according to the result. */
     4230     3rd (optional) argument according to the result. */
    42314231  rc = expr_eval_if_conditionals (argv[0], NULL);
    42324232  to_expand = rc == 0 ? argv[1] : argv[2];
    4233   if (*to_expand)
     4233  if (to_expand && *to_expand)
    42344234    variable_expand_string_2 (o, to_expand, -1, &o);
    42354235
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