CVS update: php3/functions
| From: | sas | Date: | Thu, 24 Jun 1999 12:55:08 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7515@lists.php.net to get a copy of this message | ||
Date: Thursday June 24, 1999 @ 8:55
Author: sas
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv26880
Modified Files:
file.c
Log Message:
return false, if tempnam failed
Index: php3/functions/file.c
diff -u php3/functions/file.c:1.219 php3/functions/file.c:1.220
--- php3/functions/file.c:1.219 Sat Jun 19 19:20:21 1999
+++ php3/functions/file.c Thu Jun 24 08:55:08 1999
@@ -26,7 +26,7 @@
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.219 1999/06/19 23:20:21 rasmus Exp $ */
+/* $Id: file.c,v 1.220 1999/06/24 12:55:08 sas Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
@@ -463,6 +463,9 @@
t = tempnam(d,p);
efree(d);
+ if(!t) {
+ RETURN_FALSE;
+ }
RETURN_STRING(t,1);
}
/* }}} */