diff options
| author | Nikita Popov <nikic@php.net> | 2013-10-19 23:43:05 +0200 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2013-10-19 23:43:05 +0200 |
| commit | 1292091670ed2b7bf7aad2146f1e7e44a786d97a (patch) | |
| tree | 79ac9bda660c9cfd5273c9026aafd0b6c5e553bb | |
| parent | a1ae79e11415237a89e041c3b96dd1dba6e7636e (diff) | |
| download | php-git-1292091670ed2b7bf7aad2146f1e7e44a786d97a.tar.gz | |
Fix misleading sizeof
An array of zval* is allocated, but sizeof(zval **) is used.
Makes no practical difference as sizeof(zval *) == sizeof(zval **).
| -rw-r--r-- | ext/standard/assert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/assert.c b/ext/standard/assert.c index 631834c97c..1a24ade79e 100644 --- a/ext/standard/assert.c +++ b/ext/standard/assert.c @@ -200,7 +200,7 @@ PHP_FUNCTION(assert) } if (ASSERTG(callback)) { - zval **args = safe_emalloc(description_len == 0 ? 3 : 4, sizeof(zval **), 0); + zval **args = safe_emalloc(description_len == 0 ? 3 : 4, sizeof(zval *), 0); zval *retval; int i; uint lineno = zend_get_executed_lineno(TSRMLS_C); |
