Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3427

Show
Ignore:
Timestamp:
04/11/08 00:17:32 (5 months ago)
Author:
kris
Message:

fixes #1036 :: Environment variable lookup under linux does not work

Thanks vektorboson

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/sys/Environment.d

    r3294 r3427  
    209209                static char[] get (char[] variable, char[] def = null) 
    210210                { 
    211                         char* ptr = getenv (variable.ptr); 
     211                        char* ptr = getenv ((variable ~ '\0').ptr); 
    212212 
    213213                        if (ptr is null)