cvs: php4 /main output.c

From: Date: Sun, 12 May 2002 22:17:58 +0000
Subject: cvs: php4 /main output.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11889@lists.php.net to get a copy of this message
zeev Sun May 12 18:17:58 2002 EDT Modified files: /php4/main output.c Log: Remove redundant code (thanks to Jani for pointing that out) Index: php4/main/output.c diff -u php4/main/output.c:1.102 php4/main/output.c:1.103 --- php4/main/output.c:1.102 Wed May 8 07:44:14 2002 +++ php4/main/output.c Sun May 12 18:17:58 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: output.c,v 1.102 2002/05/08 11:44:14 yohgaki Exp $ */ +/* $Id: output.c,v 1.103 2002/05/12 22:17:58 zeev Exp $ */ #include "php.h" #include "ext/standard/head.h" @@ -457,17 +457,11 @@ */ static int php_ub_body_write_no_header(const char *str, uint str_length TSRMLS_DC) { - char *newstr = NULL; - size_t new_length=0; int result; if (OG(disable_output)) { return 0; } - if (newstr) { - str = newstr; - str_length = new_length; - } result = OG(php_header_write)(str, str_length TSRMLS_CC);

« previous php.cvs (#11889) next »