projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
df06e2d
)
* sizeof(*ptr) instead of sizeof(type)
author
Michael Wallner
<mike@php.net>
Sat, 21 May 2011 15:23:59 +0000
(15:23 +0000)
committer
Michael Wallner
<mike@php.net>
Sat, 21 May 2011 15:23:59 +0000
(15:23 +0000)
php_http_buffer.c
patch
|
blob
|
history
diff --git
a/php_http_buffer.c
b/php_http_buffer.c
index 84e5bbdc39d6f592aa1fd29969a7cd7fdb955738..41fd48a54655ac09cf5e142dfc0d2d49e840e132 100644
(file)
--- a/
php_http_buffer.c
+++ b/
php_http_buffer.c
@@
-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) {