diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:41:56 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:41:56 +0000 |
| commit | e2868b57885dac8a36593e2154c808038adc4cef (patch) | |
| tree | edb1421b5b3d4340a0e2538b996393874575b5f6 /ext/mcal/php_mcal.c | |
| parent | 72b356c1bccb511e9a3414cbfe6ff25b5a20b91f (diff) | |
| download | php-git-e2868b57885dac8a36593e2154c808038adc4cef.tar.gz | |
Removed pointless memory allocation checks.
Diffstat (limited to 'ext/mcal/php_mcal.c')
| -rw-r--r-- | ext/mcal/php_mcal.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/mcal/php_mcal.c b/ext/mcal/php_mcal.c index 5154c6b0c3..548da922ed 100644 --- a/ext/mcal/php_mcal.c +++ b/ext/mcal/php_mcal.c @@ -533,9 +533,7 @@ PHP_FUNCTION(mcal_list_events) } /* Initialize return array */ - if (array_init(return_value) == FAILURE) { - RETURN_FALSE; - } + array_init(return_value); if (myargc == 7) { convert_to_long_ex(startyear); @@ -651,9 +649,7 @@ PHP_FUNCTION(mcal_list_alarms) RETURN_FALSE; } - if (array_init(return_value) == FAILURE) { - RETURN_FALSE; - } + array_init(return_value); if (myargc == 7) { convert_to_long_ex(year); |
