summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-06-24 17:21:44 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-06-25 16:16:04 +1000
commit4e3fb6de2439a30c4fcb2585362e1bbffdcbebeb (patch)
treee80ce07c89b492a425294e1723be724b4fd13a0e /src
parent8bb792bf3cfbf1014e753ce855861a28a2805525 (diff)
tcm: if TET_ROOT isn't set, assume "."
Optimistic, I know. Life's too short to be pessimistic. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/tet3/tcm/tcmfuncs.c2
1 files changed, 1 insertions, 1 deletions
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 */