This commit is contained in:
Georg Richter 2002-08-23 15:56:34 +00:00
parent 064fb5c3cb
commit 6650761f9b

View File

@ -96,13 +96,13 @@ my_string my_tempnam(const char *dir, const char *pfx,
old_env=(char**)environ;
if (dir)
{ /* Don't use TMPDIR if dir is given */
environ=(const char**)temp_env; /* May give warning */
((char **)environ)=(char**)temp_env; /* May give warning */
temp_env[0]=0;
}
#endif
res=tempnam((char*) dir,(my_string) pfx); /* Use stand. dir with prefix */
#ifndef OS2
environ=(const char**)old_env; /* May give warning */
((char**)environ)=(char**)old_env; /* May give warning */
#endif
if (!res)
DBUG_PRINT("error",("Got error: %d from tempnam",errno));