cvs: php-src /main php_open_temporary_file.c

From: Date: Thu, 25 Jun 2009 01:35:15 +0000
Subject: cvs: php-src /main php_open_temporary_file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58976@lists.php.net to get a copy of this message
iliaa Thu Jun 25 01:35:15 2009 UTC Modified files: /php-src/main php_open_temporary_file.c Log: MFB: Handle instances where TMPDIR = "" http://cvs.php.net/viewvc.cgi/php-src/main/php_open_temporary_file.c?r1=1.48&r2=1.49&diff_format=u Index: php-src/main/php_open_temporary_file.c diff -u php-src/main/php_open_temporary_file.c:1.48 php-src/main/php_open_temporary_file.c:1.49 --- php-src/main/php_open_temporary_file.c:1.48 Wed Jun 24 12:21:37 2009 +++ php-src/main/php_open_temporary_file.c Thu Jun 25 01:35:15 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_open_temporary_file.c,v 1.48 2009/06/24 12:21:37 iliaa Exp $ */ +/* $Id: php_open_temporary_file.c,v 1.49 2009/06/25 01:35:15 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) {

« previous php.cvs (#58976) next »