X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_message.c;h=3186b79edca07ed13a09e982c9ced7bf64d5a239;hp=60569b8be62f336f2199ba72196c6fe1f8178e03;hb=refs%2Fheads%2Fv2.6.x;hpb=76b679d046ac10c00eb13da217f2adaaad580251 diff --git a/src/php_http_message.c b/src/php_http_message.c index 60569b8..3186b79 100644 --- a/src/php_http_message.c +++ b/src/php_http_message.c @@ -436,7 +436,7 @@ php_http_message_t *php_http_message_reverse(php_http_message_t *msg) if (c > 1) { php_http_message_t *tmp = msg, **arr; - arr = ecalloc(c, sizeof(**arr)); + arr = ecalloc(c, sizeof(*arr)); for (i = 0; i < c; ++i) { arr[i] = tmp; tmp = tmp->parent; @@ -702,7 +702,7 @@ void php_http_message_object_reverse(zval *this_ptr, zval *return_value TSRMLS_D php_http_message_object_t **objects; int last; - objects = ecalloc(i, sizeof(**objects)); + objects = ecalloc(i, sizeof(*objects)); /* we are the first message */ objects[0] = obj;