mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
first check for NULL, then use the pointer
This commit is contained in:
parent
4767e90a47
commit
9cee8be28e
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue