cvs: ZendEngine2 / zend_stream.c

[email protected] ("Nuno Lopes")
Newsgroups php.zend-engine.cvs
Message-ID <cvsnlopess1207323337@cvsserver>
nlopess		Fri Apr  4 15:35:37 2008 UTC

  Modified files:              
    /ZendEngine2	zend_stream.c 
  Log:
  MFB: remove redundant test
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_stream.c?r1=1.19&r2=1.20&diff_format=u
Index: ZendEngine2/zend_stream.c
diff -u ZendEngine2/zend_stream.c:1.19 ZendEngine2/zend_stream.c:1.20
--- ZendEngine2/zend_stream.c:1.19	Wed Mar 26 14:23:02 2008
+++ ZendEngine2/zend_stream.c	Fri Apr  4 15:35:37 2008
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_stream.c,v 1.19 2008/03/26 14:23:02 scottmac Exp $ */
+/* $Id: zend_stream.c,v 1.20 2008/04/04 15:35:37 nlopess Exp $ */
 
 
 #include "zend.h"
@@ -207,7 +207,7 @@
 
 	if (old_type == ZEND_HANDLE_FP && !file_handle->handle.stream.isatty && size) {
 #if HAVE_MMAP
-		if (file_handle->handle.fp && size) {
+		if (file_handle->handle.fp) {
 			/*  *buf[size] is zeroed automatically by the kernel */
 			*buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0);
 			if (*buf != MAP_FAILED) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.