VirtualBox

Changeset 2682 in kBuild for trunk/src/kash


Ignore:
Timestamp:
Apr 29, 2013 7:41:26 PM (12 years ago)
Author:
bird
Message:

var.h/pathval(): Don't try use the 'Path' if it wasn't found and 'PATH' is empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/var.h

    r1233 r2682  
    108108#define mpathval(psh)   ((psh)->vmpath.text + 9)
    109109#ifdef _MSC_VER
    110 #define pathval(psh)    ((psh)->vpath.text[5] ? &(psh)->vpath.text[5] : &(psh)->vpath2.text[5])
     110# define pathval(psh)   ((psh)->vpath.text[5] || !(psh)->vpath2.text ? &(psh)->vpath.text[5] : &(psh)->vpath2.text[5])
    111111#else
    112 #define pathval(psh)    ((psh)->vpath.text + 5)
     112# define pathval(psh)   ((psh)->vpath.text + 5)
    113113#endif
    114114#define ps1val(psh)     ((psh)->vps1.text + 4)
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