From 6519517dbcc5d55117b3fa94572fe93123ddfe56 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 31 Dec 2012 13:47:22 +0000 Subject: [PATCH] fix memset arg order --- php_http_client_datashare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_http_client_datashare.c b/php_http_client_datashare.c index 387df53..4b92939 100644 --- a/php_http_client_datashare.c +++ b/php_http_client_datashare.c @@ -22,7 +22,7 @@ PHP_HTTP_API php_http_client_datashare_t *php_http_client_datashare_init(php_htt if (!h) { free_h = h = emalloc(sizeof(*h)); } - memset(h, sizeof(*h), 0); + memset(h, 0, sizeof(*h)); zend_llist_init(&h->clients, sizeof(zval *), ZVAL_PTR_DTOR, 0); h->ops = ops; -- 2.30.2