Skip to content

Commit 5e34744

Browse files
committed
Initialize calendar_long variable
As reported by cmb, this results a VC runtime warning. I don't believe there's a problem here, as we only use calendar_long if both calendar_is_null and calendar_obj are not set, but it doesn't hurt to initialize it either...
1 parent 251af73 commit 5e34744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/intl/dateformat/dateformat_create.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static zend_result datefmt_ctor(INTERNAL_FUNCTION_PARAMETERS)
5454
zend_long date_type = 0;
5555
zend_long time_type = 0;
5656
zend_object *calendar_obj = NULL;
57-
zend_long calendar_long;
57+
zend_long calendar_long = 0;
5858
zend_bool calendar_is_null = 1;
5959
Calendar *cal = NULL;
6060
zend_long calendar_type;

0 commit comments

Comments
 (0)