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/string.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/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 b32cc7cd94..c744cb46fc 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3253,7 +3253,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)) { @@ -4613,7 +4613,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; |
