mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix MFHed segfault
This commit is contained in:
parent
6ded8042b9
commit
ffe3e65ac0
1 changed files with 2 additions and 2 deletions
|
@ -194,12 +194,12 @@ PHPAPI const char* php_get_temporary_directory(void)
|
|||
#ifdef P_tmpdir
|
||||
/* Use the standard default temporary directory. */
|
||||
if (P_tmpdir) {
|
||||
temporary_directory = P_tmpdir;
|
||||
temporary_directory = strdup(P_tmpdir);
|
||||
return temporary_directory;
|
||||
}
|
||||
#endif
|
||||
/* Shouldn't ever(!) end up here ... last ditch default. */
|
||||
temporary_directory = "/tmp";
|
||||
temporary_directory = strdup("/tmp");
|
||||
return temporary_directory;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue