From: Antony Dovgal Date: Fri, 24 Mar 2006 10:21:56 +0000 (+0000) Subject: first check for NULL, then use the pointer X-Git-Tag: RELEASE_1_3~277 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cee8be28ef08cc62395c3664973f600d27ecd49;p=php first check for NULL, then use the pointer --- 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) {