mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +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
|
#ifdef P_tmpdir
|
||||||
/* Use the standard default temporary directory. */
|
/* Use the standard default temporary directory. */
|
||||||
if (P_tmpdir) {
|
if (P_tmpdir) {
|
||||||
temporary_directory = P_tmpdir;
|
temporary_directory = strdup(P_tmpdir);
|
||||||
return temporary_directory;
|
return temporary_directory;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* Shouldn't ever(!) end up here ... last ditch default. */
|
/* Shouldn't ever(!) end up here ... last ditch default. */
|
||||||
temporary_directory = "/tmp";
|
temporary_directory = strdup("/tmp");
|
||||||
return temporary_directory;
|
return temporary_directory;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue