Skip to content

Commit 322da7b

Browse files
committed
Fix various uouv in intl
1 parent a145b40 commit 322da7b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ext/intl/uchar/uchar.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ IC_METHOD(hasBinaryProperty) {
8686
UChar32 cp;
8787
zend_long prop;
8888
zend_string *string_codepoint;
89-
zend_long int_codepoint;
89+
zend_long int_codepoint = 0;
9090

9191
ZEND_PARSE_PARAMETERS_START(2, 2)
9292
Z_PARAM_STR_OR_LONG(string_codepoint, int_codepoint)
@@ -106,7 +106,7 @@ IC_METHOD(getIntPropertyValue) {
106106
UChar32 cp;
107107
zend_long prop;
108108
zend_string *string_codepoint;
109-
zend_long int_codepoint;
109+
zend_long int_codepoint = 0;
110110

111111
ZEND_PARSE_PARAMETERS_START(2, 2)
112112
Z_PARAM_STR_OR_LONG(string_codepoint, int_codepoint)
@@ -214,7 +214,7 @@ IC_METHOD(getBlockCode) {
214214
IC_METHOD(charName) {
215215
UChar32 cp;
216216
zend_string *string_codepoint;
217-
zend_long int_codepoint;
217+
zend_long int_codepoint = 0;
218218
UErrorCode error = U_ZERO_ERROR;
219219
zend_long nameChoice = U_UNICODE_CHAR_NAME;
220220
zend_string *buffer = NULL;
@@ -294,7 +294,7 @@ static UBool enumCharNames_callback(enumCharNames_data *context,
294294
IC_METHOD(enumCharNames) {
295295
UChar32 start, limit;
296296
zend_string *string_start, *string_limit;
297-
zend_long int_start, int_limit;
297+
zend_long int_start = 0, int_limit = 0;
298298
enumCharNames_data context;
299299
zend_long nameChoice = U_UNICODE_CHAR_NAME;
300300
UErrorCode error = U_ZERO_ERROR;
@@ -391,7 +391,7 @@ IC_METHOD(foldCase) {
391391
UChar32 cp, ret;
392392
zend_long options = U_FOLD_CASE_DEFAULT;
393393
zend_string *string_codepoint;
394-
zend_long int_codepoint;
394+
zend_long int_codepoint = 0;
395395

396396
ZEND_PARSE_PARAMETERS_START(2, 2)
397397
Z_PARAM_STR_OR_LONG(string_codepoint, int_codepoint)
@@ -421,7 +421,7 @@ IC_METHOD(digit) {
421421
zend_long radix = 10;
422422
int ret;
423423
zend_string *string_codepoint;
424-
zend_long int_codepoint;
424+
zend_long int_codepoint = 0;
425425

426426
ZEND_PARSE_PARAMETERS_START(1, 2)
427427
Z_PARAM_STR_OR_LONG(string_codepoint, int_codepoint)

0 commit comments

Comments
 (0)