X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_buffer.c;h=41fd48a54655ac09cf5e142dfc0d2d49e840e132;hp=84e5bbdc39d6f592aa1fd29969a7cd7fdb955738;hb=0a0f485c70d8571a954cb5fccc53e104540b9a30;hpb=df06e2dbf48a3b0d96f2c62071c1b5fc907a98d0 diff --git a/php_http_buffer.c b/php_http_buffer.c index 84e5bbd..41fd48a 100644 --- 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) {