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 387df53..4b92939 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;