mirror of
https://github.com/php/php-src.git
synced 2025-01-20 18:53:37 +08:00
fixed bug #18643
This commit is contained in:
parent
064fb5c3cb
commit
6650761f9b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user