cache answer
This commit is contained in:
parent
66c10f02c3
commit
b94ad13d4b
1 changed files with 7 additions and 2 deletions
|
|
@ -4,10 +4,15 @@
|
||||||
char*
|
char*
|
||||||
get9root(void)
|
get9root(void)
|
||||||
{
|
{
|
||||||
char *s;
|
static char *s;
|
||||||
|
|
||||||
|
if(s)
|
||||||
|
return s;
|
||||||
|
|
||||||
if((s = getenv("PLAN9")) != 0)
|
if((s = getenv("PLAN9")) != 0)
|
||||||
return s;
|
return s;
|
||||||
return "/usr/local/plan9";
|
/* could do better - search $PATH */
|
||||||
|
s = "/usr/local/plan9";
|
||||||
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue