summaryrefslogtreecommitdiff
path: root/ext/mcal/php_mcal.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mcal/php_mcal.c')
-rw-r--r--ext/mcal/php_mcal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/mcal/php_mcal.c b/ext/mcal/php_mcal.c
index 0c73edb383..6ecd3a5419 100644
--- a/ext/mcal/php_mcal.c
+++ b/ext/mcal/php_mcal.c
@@ -1367,9 +1367,7 @@ PHP_FUNCTION(mcal_next_recurrence)
calevent_next_recurrence(mcal_le_struct->event, &mydate, Z_LVAL_PP(weekstart));
- if (object_init(return_value) == FAILURE) {
- RETURN_FALSE;
- }
+ object_init(return_value);
if (mydate.has_date) {
add_property_long(return_value, "year", mydate.year);