first check for NULL, then use the pointer

This commit is contained in:
Antony Dovgal 2006-03-24 10:21:56 +00:00
parent 4767e90a47
commit 9cee8be28e

View file

@ -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) {