From 9cee8be28ef08cc62395c3664973f600d27ecd49 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 24 Mar 2006 10:21:56 +0000 Subject: [PATCH] first check for NULL, then use the pointer --- ext/unicode/unicode_filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/unicode/unicode_filter.c b/ext/unicode/unicode_filter.c index c6ef320ea3..0c5b025ec8 100644 --- a/ext/unicode/unicode_filter.c +++ b/ext/unicode/unicode_filter.c @@ -186,13 +186,14 @@ static php_stream_filter_status_t php_unicode_tidy_filter( TSRMLS_DC) { php_unicode_filter_data *data; - int prefer_unicode = php_stream_filter_output_prefer_unicode(thisfilter); + int prefer_unicode; if (!thisfilter || !thisfilter->abstract) { /* Should never happen */ return PSFS_ERR_FATAL; } + prefer_unicode = php_stream_filter_output_prefer_unicode(thisfilter); data = (php_unicode_filter_data *)(thisfilter->abstract); if (prefer_unicode) { -- 2.50.1