]> granicus.if.org Git - php/commitdiff
Fix [-Wmissing-field-initializers] compiler warning in transliterator_methods.c
authorGeorge Peter Banyard <girgias@php.net>
Mon, 10 Feb 2020 23:23:52 +0000 (00:23 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Mon, 10 Feb 2020 23:23:52 +0000 (00:23 +0100)
ext/intl/transliterator/transliterator_methods.c

index fcf788d7dac9864ae13447d8b85e243e4e5db437..766a0cbfe71b4959cb7cdf6327c638f9d99c10c0 100644 (file)
@@ -31,7 +31,7 @@ static int create_transliterator( char *str_id, size_t str_id_len, zend_long dir
        UChar                 *ustr_id    = NULL;
        int32_t               ustr_id_len = 0;
        UTransliterator       *utrans;
-       UParseError           parse_error   = {0, -1};
+       UParseError           parse_error;
 
        intl_error_reset( NULL );
 
@@ -136,7 +136,7 @@ PHP_FUNCTION( transliterator_create_from_rules )
        UChar               *ustr_rules    = NULL;
        int32_t         ustr_rules_len = 0;
        zend_long       direction      = TRANSLITERATOR_FORWARD;
-       UParseError     parse_error    = {0, -1};
+       UParseError     parse_error;
        UTransliterator *utrans;
        UChar           id[] = {0x52, 0x75, 0x6C, 0x65, 0x73, 0x54, 0x72,
                                               0x61, 0x6E, 0x73, 0x50, 0x48, 0x50, 0}; /* RulesTransPHP */