mirror of
https://github.com/php/php-src.git
synced 2026-03-28 18:22:42 +01:00
first check for NULL, then use the pointer
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user