check envvars better when looking for the tempdir to use
for houdini files.
@@ -97,12 +97,15 @@ getTempDir()
{
const char* env = getenv("TMPDIR");
if(env)
+ {
tempDir = env;
- // not a Houdini-specific directory, so append a sub-directory to make
- // it Houdini-specific
+ // not a Houdini-specific directory, so append a sub-directory
+ // to make it Houdini-specific
+ if(!tempDir.empty())
tempDir += PATH_SEPARATOR "houdini_temp";
}
+ }
if(tempDir.empty())
{
