fix memset arg order
authorRemi Collet <remi@php.net>
Mon, 31 Dec 2012 13:47:22 +0000 (13:47 +0000)
committerRemi Collet <remi@php.net>
Mon, 31 Dec 2012 13:47:22 +0000 (13:47 +0000)
php_http_client_datashare.c

index 387df53656ddc2875f0e065b3f56adabdcaf942e..4b9293907917f935f17e7e69bfcc4b0c5eed901b 100644 (file)
@@ -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;