mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
look for $HOME - thanks to peter canning.
This commit is contained in:
parent
372c9567e1
commit
7ae745421a
1 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,8 @@ threadmain(int argc, char *argv[])
|
||||||
cputype = getenv("cputype");
|
cputype = getenv("cputype");
|
||||||
objtype = getenv("objtype");
|
objtype = getenv("objtype");
|
||||||
home = getenv("home");
|
home = getenv("home");
|
||||||
|
if(home == nil)
|
||||||
|
home = getenv("HOME");
|
||||||
p = getenv("tabstop");
|
p = getenv("tabstop");
|
||||||
if(p != nil){
|
if(p != nil){
|
||||||
maxtab = strtoul(p, nil, 0);
|
maxtab = strtoul(p, nil, 0);
|
||||||
|
|
Loading…
Reference in a new issue