cvs: php-src(PHP_5_2) /main php_open_temporary_file.c
| From: | Ilia Alshanetsky | Date: | Thu, 25 Jun 2009 01:35:05 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /main php_open_temporary_file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-58975@lists.php.net to get a copy of this message | ||
iliaa Thu Jun 25 01:35:05 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src/main php_open_temporary_file.c
Log:
Handle instances where TMPDIR = ""
http://cvs.php.net/viewvc.cgi/php-src/main/php_open_temporary_file.c?r1=1.34.2.1.2.13&r2=1.34.2.1.2.14&diff_format=u
Index: php-src/main/php_open_temporary_file.c
diff -u php-src/main/php_open_temporary_file.c:1.34.2.1.2.13
php-src/main/php_open_temporary_file.c:1.34.2.1.2.14
--- php-src/main/php_open_temporary_file.c:1.34.2.1.2.13 Wed Jun 24 12:21:20 2009
+++ php-src/main/php_open_temporary_file.c Thu Jun 25 01:35:05 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_open_temporary_file.c,v 1.34.2.1.2.13 2009/06/24 12:21:20 iliaa Exp $ */
+/* $Id: php_open_temporary_file.c,v 1.34.2.1.2.14 2009/06/25 01:35:05 iliaa Exp $ */
#include "php.h"
@@ -199,7 +199,7 @@
/* On Unix use the (usual) TMPDIR environment variable. */
{
char* s = getenv("TMPDIR");
- if (s) {
+ if (s && *s) {
int len = strlen(s);
if (s[len - 1] == DEFAULT_SLASH) {