summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 22bcbc6c3b..a081a62e05 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -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) {