diff options
author | Nikita Popov <nikic@php.net> | 2015-07-17 20:18:25 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-07-17 20:18:25 +0200 |
commit | 5c95226d50e565b43d9e7f2d4ff4deeaf7ec8942 (patch) | |
tree | 309a2e9430f04fda13e808e1ea00b8b27f388116 /ext/intl/msgformat/msgformat_parse.c | |
parent | 90d9adccec42559d08487ae144e947df30ab820e (diff) | |
download | php-git-5c95226d50e565b43d9e7f2d4ff4deeaf7ec8942.tar.gz |
Various warning fixes
Diffstat (limited to 'ext/intl/msgformat/msgformat_parse.c')
-rw-r--r-- | ext/intl/msgformat/msgformat_parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/intl/msgformat/msgformat_parse.c b/ext/intl/msgformat/msgformat_parse.c index 4d63a0169a..349633912b 100644 --- a/ext/intl/msgformat/msgformat_parse.c +++ b/ext/intl/msgformat/msgformat_parse.c @@ -97,7 +97,7 @@ PHP_FUNCTION( msgfmt_parse_message ) size_t slocale_len = 0; char *source = NULL; size_t src_len = 0; - MessageFormatter_object mf = {0}; + MessageFormatter_object mf; MessageFormatter_object *mfo = &mf; /* Parse parameters. */ @@ -110,6 +110,7 @@ PHP_FUNCTION( msgfmt_parse_message ) RETURN_FALSE; } + memset(mfo, 0, sizeof(*mfo)); msgformat_data_init(&mfo->mf_data); if(pattern && pattern_len) { |