svn: /pecl/http/branches/DEV_2/ php_http_buffer.c

From: Date: Sat, 21 May 2011 15:23:59 +0000
Subject: svn: /pecl/http/branches/DEV_2/ php_http_buffer.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-15651@lists.php.net to get a copy of this message
mike Sat, 21 May 2011 15:23:59 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311306 Log: * sizeof(*ptr) instead of sizeof(type) Changed paths: U pecl/http/branches/DEV_2/php_http_buffer.c Modified: pecl/http/branches/DEV_2/php_http_buffer.c =================================================================== --- pecl/http/branches/DEV_2/php_http_buffer.c 2011-05-21 10:56:56 UTC (rev 311305) +++ pecl/http/branches/DEV_2/php_http_buffer.c 2011-05-21 15:23:59 UTC (rev 311306) @@ -7,7 +7,7 @@ PHP_HTTP_BUFFER_API php_http_buffer_t *php_http_buffer_init_ex(php_http_buffer_t *buf, size_t chunk_size, int flags) { if (!buf) { - buf = pemalloc(sizeof(php_http_buffer_t), flags & PHP_HTTP_BUFFER_INIT_PERSISTENT); + buf = pemalloc(sizeof(*buf), flags & PHP_HTTP_BUFFER_INIT_PERSISTENT); } if (buf) {

« previous php.pecl.cvs (#15651) next »