diff options
author | Christopher Jones <sixd@php.net> | 2013-08-14 20:36:50 -0700 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2013-08-14 20:36:50 -0700 |
commit | 9ad97cd48903ea5454853960f2c14de326e0f624 (patch) | |
tree | 9607bef3020deb8da37bacdb1c14624f4b5d1d2f /ext/standard/html.c | |
parent | 9d62807190ebda858acbb09ad832c96570a97c40 (diff) | |
download | php-git-9ad97cd48903ea5454853960f2c14de326e0f624.tar.gz |
Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
Diffstat (limited to 'ext/standard/html.c')
-rw-r--r-- | ext/standard/html.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c index 414fa65c91..b4d9ba109d 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -1221,8 +1221,8 @@ PHPAPI char *php_escape_html_entities_ex(unsigned char *old, size_t oldlen, size const enc_to_uni *to_uni_table = NULL; const entity_ht *inv_map = NULL; /* used for !double_encode */ /* only used if flags includes ENT_HTML_IGNORE_ERRORS or ENT_HTML_SUBSTITUTE_DISALLOWED_CHARS */ - const unsigned char *replacement; - size_t replacement_len; + const unsigned char *replacement = NULL; + size_t replacement_len = 0; if (all) { /* replace with all named entities */ if (CHARSET_PARTIAL_SUPPORT(charset)) { @@ -1596,7 +1596,7 @@ PHP_FUNCTION(get_html_translation_table) flags = ENT_COMPAT; int doctype; entity_table_opt entity_table; - const enc_to_uni *to_uni_table; + const enc_to_uni *to_uni_table = NULL; char *charset_hint = NULL; int charset_hint_len; enum entity_charset charset; |