]> granicus.if.org Git - php/commitdiff
kill another warning
authorStig Bakken <ssb@php.net>
Fri, 24 Sep 1999 15:34:54 +0000 (15:34 +0000)
committerStig Bakken <ssb@php.net>
Fri, 24 Sep 1999 15:34:54 +0000 (15:34 +0000)
ext/standard/string.c

index 22bcbc6c3bb9f38e51756c95a5853a38a38ebebf..a081a62e05f6b9fba75d06681df48b7aaeb60824 100644 (file)
@@ -1940,7 +1940,9 @@ void _php3_strip_tags(char *rbuf, int len, int state, char *allow) {
                _php3_strtolower(allow);
                tbuf = emalloc(PHP_TAG_BUF_SIZE+1);
                tp = tbuf;
-       } else tp=NULL;
+       } else {
+               tbuf = tp = NULL;
+       }
 
        while(i<len) {
                switch (c) {