Mercurial > hg > aboriginal
changeset 1105:345f49b45123
Another fix for unexported $PATH.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 08 Jun 2010 18:42:22 -0500 |
parents | 6ab5dfe6b035 |
children | 33ad2278b2af |
files | sources/toys/ccwrap.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sources/toys/ccwrap.c Tue Jun 08 15:01:39 2010 -0500 +++ b/sources/toys/ccwrap.c Tue Jun 08 18:42:22 2010 -0500 @@ -128,6 +128,8 @@ } else { char *path = getenv("PATH"), *temp; + if (!path) path = ""; + // Add that directory to the start of $PATH. (Better safe than sorry.) *rindex(topdir,'/') = 0; temp = malloc(5+strlen(topdir)+1+strlen(topdir)+14+strlen(path)+1);