From 4e3fb6de2439a30c4fcb2585362e1bbffdcbebeb Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 24 Jun 2010 17:21:44 +1000 Subject: tcm: if TET_ROOT isn't set, assume "." Optimistic, I know. Life's too short to be pessimistic. Signed-off-by: Peter Hutterer --- src/tet3/tcm/tcmfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tet3/tcm/tcmfuncs.c b/src/tet3/tcm/tcmfuncs.c index db6163db..004e7cd6 100644 --- a/src/tet3/tcm/tcmfuncs.c +++ b/src/tet3/tcm/tcmfuncs.c @@ -145,7 +145,7 @@ char **argv; /* get TET_ROOT out of the environment */ if ((envstring = getenv(tetroot_name)) == (char *) 0 || !*envstring) - fatal(0, tetroot_name, envmsg); + envstring = strdup("."); (void) sprintf(tet_root, "%.*s", (int) sizeof tet_root - 1, envstring); /* get the dtet ti args out of the environment and count them */ -- cgit v1.2.3