diff options
author | Christopher Jones <sixd@php.net> | 2013-08-14 20:43:25 -0700 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2013-08-14 20:43:25 -0700 |
commit | 39612afc72623e89a2bc595c9be4be497568d1be (patch) | |
tree | ba336742c4b5ad3d4c8933748b91332f7436aa66 /ext/standard/string.c | |
parent | 8c61758dc772345636e436e3f69bef7323f8b339 (diff) | |
parent | 9ad97cd48903ea5454853960f2c14de326e0f624 (diff) | |
download | php-git-39612afc72623e89a2bc595c9be4be497568d1be.tar.gz |
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
Conflicts:
ext/dba/libinifile/inifile.c
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 6a67efbd7e..b9d7427eb9 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3204,7 +3204,7 @@ static void php_similar_str(const char *txt1, int len1, const char *txt2, int le static int php_similar_char(const char *txt1, int len1, const char *txt2, int len2) { int sum; - int pos1, pos2, max; + int pos1 = 0, pos2 = 0, max; php_similar_str(txt1, len1, txt2, len2, &pos1, &pos2, &max); if ((sum = max)) { @@ -4564,7 +4564,7 @@ PHPAPI size_t php_strip_tags_ex(char *rbuf, int len, int *stateptr, char *allow, char *tbuf, *buf, *p, *tp, *rp, c, lc; int br, i=0, depth=0, in_q = 0; int state = 0, pos; - char *allow_free; + char *allow_free = NULL; if (stateptr) state = *stateptr; |