]> granicus.if.org Git - php/commitdiff
oops...
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 20 Jul 2004 19:36:00 +0000 (19:36 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 20 Jul 2004 19:36:00 +0000 (19:36 +0000)
ext/standard/filters.c

index 6fd4da1688e14f5ac267cc3b99841fbdc1299753..0b3fd008775dc84a229e1bdc9c0e7adffb61cfb1 100644 (file)
@@ -176,7 +176,7 @@ typedef struct _php_strip_tags_filter {
 static int php_strip_tags_filter_ctor(php_strip_tags_filter *inst, const char *allowed_tags, int allowed_tags_len, int persistent)
 {
        if (allowed_tags != NULL) {
-               if (NULL != (inst->allowed_tags = pemalloc(allowed_tags_len, persistent))) {
+               if (NULL == (inst->allowed_tags = pemalloc(allowed_tags_len, persistent))) {
                        return FAILURE;
                }
                memcpy((char *)inst->allowed_tags, allowed_tags, allowed_tags_len);